[JIRA] (JENKINS-60698) sshCommand with sudo: true waits forever
Title: Message Title Naresh Rayapati reopened an issue Jenkins / JENKINS-60698 sshCommand with sudo: true waits forever Change By: Naresh Rayapati Resolution: Fixed Status: Closed Reopened Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203943.1578498666000.7890.1580271301251%40Atlassian.JIRA.
[JIRA] (JENKINS-60698) sshCommand with sudo: true waits forever
Title: Message Title Naresh Rayapati closed an issue as Fixed Jenkins / JENKINS-60698 sshCommand with sudo: true waits forever Change By: Naresh Rayapati Status: Open Closed Resolution: Fixed Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203943.1578498666000.7887.1580271301204%40Atlassian.JIRA.
[JIRA] (JENKINS-60698) sshCommand with sudo: true waits forever
Title: Message Title Naresh Rayapati updated JENKINS-60698 Jenkins / JENKINS-60698 sshCommand with sudo: true waits forever Change By: Naresh Rayapati Status: Reopened Open Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203943.1578498666000.7893.1580271301295%40Atlassian.JIRA.
[JIRA] (JENKINS-60698) sshCommand with sudo: true waits forever
Title: Message Title Naresh Rayapati closed an issue as Not A Defect Jenkins / JENKINS-60698 sshCommand with sudo: true waits forever Change By: Naresh Rayapati Status: Open Closed Resolution: Not A Defect Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203943.1578498666000.7899.1580271301366%40Atlassian.JIRA.
[JIRA] (JENKINS-60698) sshCommand with sudo: true waits forever
Title: Message Title Naresh Rayapati updated an issue Jenkins / JENKINS-60698 sshCommand with sudo: true waits forever Change By: Naresh Rayapati Priority: Major Minor Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203943.1578498666000.7896.1580271301329%40Atlassian.JIRA.
[JIRA] (JENKINS-60698) sshCommand with sudo: true waits forever
Title: Message Title Naresh Rayapati commented on JENKINS-60698 Re: sshCommand with sudo: true waits forever To run sudo command the we need to provide username and password as the command would be waiting for an password as an input during the actual execution, it would waiting. Looks like you are using identifyFile so either switch it to use username password or add support for password less sudo access on these commands. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203943.1578498666000.7808.1580267760176%40Atlassian.JIRA.
[JIRA] (JENKINS-60698) sshCommand with sudo: true waits forever
Title: Message Title Nick Hardy created an issue Jenkins / JENKINS-60698 sshCommand with sudo: true waits forever Issue Type: Bug Assignee: Naresh Rayapati Components: ssh-steps-plugin Created: 2020-01-08 15:51 Environment: Jenkins 2.204.1 Ubuntu 16.04.5 LTS Priority: Minor Reporter: Nick Hardy I have an issue using an sshCommand with sudo set to true from within a pipeline. withCredentials([sshUserPrivateKey(credentialsId: credentials_id, keyFileVariable: 'JenkinsIdentity')]) { script { def remote = [name: server_name, host: host_name, knownHosts: remote_knownHosts, user: remote_user, timeoutSec: 1200, identityFile: JenkinsIdentity] // install application sshCommand remote: remote, command: '/home/user/install.sh', sudo: true } } The command executes on the remote server, but it's waiting forever. Probably waiting for user input. On the remote server i see this in processes: root 62610 62609 0 16:35 ? 00:00:00 sudo -S -p 4b0b21d6-23ab-4e47-b21e-8362bdf2c4d0 sh /home/user/install.sh It will only stop when i abort the jenkins job. Any ideas on what i can try?
[JIRA] (JENKINS-60698) sshCommand with sudo: true waits forever
Title: Message Title Nick Hardy updated an issue Jenkins / JENKINS-60698 sshCommand with sudo: true waits forever Change By: Nick Hardy Priority: Minor Major Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.203943.1578498666000.4867.1578498720348%40Atlassian.JIRA.