Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56989

Default pty to false for sshCommand

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • ssh-steps-plugin
    • None

      Calling sshCommand forces the allocation of PTY, however running commands on servers where there is no proper PTY support (win32-openssh) can generate failures such as garbage output, ...

      Being able to disable/enable PTY allocation would help for these environments

      EDIT: 

      There is PTY setting at the remote level, but actually not sure why I had to make it true at the command level, I think it needs to be defaulted false as there is no impact for LINUX boxes either way, I have tested it. Made a PR.

      And this PTY is also applicable for other steps, so instead it is good to have it at the remote level.
       

            nrayapati Naresh Rayapati
            jmalopoy Jesús Malo Poyatos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: