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

the input device is not a TTY

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • pipeline
    • None
    • shell

      Good Day, 

      I created a jenkins pipeline it work but the issue comes when I have to execute shell commands: eg

      When I try to execute a docker container after ssh I get the below error:

       
      the input device is not a TTY

       
      Agent pid 12446
      + ssh-add -k /var/lib/jenkins/.ssh/mykeys
      Identity added: /var/lib/jenkins/.ssh/mykeys (/var/lib/jenkins/.ssh/mykeys)
      + ssh user@ip docker exec -it container_name bash
      the input device is not a TTY
      Build step 'Execute shell' marked build as failure
      Finished: FAILURE

            Unassigned Unassigned
            gugule2 Gugulethu Mabaso
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: