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

Not able to execute sudo command on "Send files or execute commands over SSH"

      Started by user Kumar
      Building on master in workspace /xxx/xxxxxx/xxx/xxxxxxxx
      Copied 1 artifact from "xxxxxxxx" build number xxx
      SSH: Connecting from host [xxxxxxxxxxxx]
      SSH: Connecting with configuration [xxxxxxxxx] ...
      SSH: EXEC: STDOUT/STDERR from command [sudo service tomcat7 stop] ...
      sudo: no tty present and no askpass program specified
      SSH: EXEC: completed after 200 ms
      SSH: Disconnecting configuration [xxxxxxxxx] ...
      ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]
      Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
      Sending e-mails to: xxxxxxxxxxxxxxxxxx
      Started calculate disk usage of build
      Finished Calculation of disk usage of build in 0 seconds
      Started calculate disk usage of workspace
      Finished Calculation of disk usage of workspace in 0 seconds
      Finished: UNSTABLE

          [JENKINS-34884] Not able to execute sudo command on "Send files or execute commands over SSH"

          Kumar J created issue -
          Kumar J made changes -
          Description Original: Started by user Manoj Tumati
          Building on master in workspace /opt/jenkins/jobs/xxxxxxxx
          Copied 1 artifact from "xxxxxxxx" build number 366
          SSH: Connecting from host [xxxxxxxxxxxx]
          SSH: Connecting with configuration [xxxxxxxxx] ...
          SSH: EXEC: STDOUT/STDERR from command [sudo service tomcat7 stop] ...
          sudo: no tty present and no askpass program specified
          SSH: EXEC: completed after 200 ms
          SSH: Disconnecting configuration [xxxxxxxxx] ...
          ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]
          Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
          Sending e-mails to: xxxxxxxxxxxxxxxxxx
          Started calculate disk usage of build
          Finished Calculation of disk usage of build in 0 seconds
          Started calculate disk usage of workspace
          Finished Calculation of disk usage of workspace in 0 seconds
          Finished: UNSTABLE
          New: Started by user Manoj Tumati
          Building on master in workspace /xxx/xxxxxx/xxx/xxxxxxxx
          Copied 1 artifact from "xxxxxxxx" build number xxx
          SSH: Connecting from host [xxxxxxxxxxxx]
          SSH: Connecting with configuration [xxxxxxxxx] ...
          SSH: EXEC: STDOUT/STDERR from command [sudo service tomcat7 stop] ...
          sudo: no tty present and no askpass program specified
          SSH: EXEC: completed after 200 ms
          SSH: Disconnecting configuration [xxxxxxxxx] ...
          ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]
          Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
          Sending e-mails to: xxxxxxxxxxxxxxxxxx
          Started calculate disk usage of build
          Finished Calculation of disk usage of build in 0 seconds
          Started calculate disk usage of workspace
          Finished Calculation of disk usage of workspace in 0 seconds
          Finished: UNSTABLE
          Oleg Nenashev made changes -
          Component/s New: publish-over-ssh-plugin [ 15792 ]
          Component/s Original: _unsorted [ 19622 ]
          Oleg Nenashev made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ] New: bap [ bap ]
          Kumar J made changes -
          Description Original: Started by user Manoj Tumati
          Building on master in workspace /xxx/xxxxxx/xxx/xxxxxxxx
          Copied 1 artifact from "xxxxxxxx" build number xxx
          SSH: Connecting from host [xxxxxxxxxxxx]
          SSH: Connecting with configuration [xxxxxxxxx] ...
          SSH: EXEC: STDOUT/STDERR from command [sudo service tomcat7 stop] ...
          sudo: no tty present and no askpass program specified
          SSH: EXEC: completed after 200 ms
          SSH: Disconnecting configuration [xxxxxxxxx] ...
          ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]
          Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
          Sending e-mails to: xxxxxxxxxxxxxxxxxx
          Started calculate disk usage of build
          Finished Calculation of disk usage of build in 0 seconds
          Started calculate disk usage of workspace
          Finished Calculation of disk usage of workspace in 0 seconds
          Finished: UNSTABLE
          New: Started by user Kumar
          Building on master in workspace /xxx/xxxxxx/xxx/xxxxxxxx
          Copied 1 artifact from "xxxxxxxx" build number xxx
          SSH: Connecting from host [xxxxxxxxxxxx]
          SSH: Connecting with configuration [xxxxxxxxx] ...
          SSH: EXEC: STDOUT/STDERR from command [sudo service tomcat7 stop] ...
          sudo: no tty present and no askpass program specified
          SSH: EXEC: completed after 200 ms
          SSH: Disconnecting configuration [xxxxxxxxx] ...
          ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]]
          Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
          Sending e-mails to: xxxxxxxxxxxxxxxxxx
          Started calculate disk usage of build
          Finished Calculation of disk usage of build in 0 seconds
          Started calculate disk usage of workspace
          Finished Calculation of disk usage of workspace in 0 seconds
          Finished: UNSTABLE
          Oleg Nenashev made changes -
          Assignee Original: bap [ bap ] New: Oleg Nenashev [ oleg_nenashev ]
          Kumar J made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 171084 ] New: JNJira + In-Review [ 199032 ]

            oleg_nenashev Oleg Nenashev
            manojktumati Kumar J
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: