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

Please add support for jenkins pipeline plugin to publish-over-ssh

      Please add support for the Jenkins Workflow plugin. Thanks!

          [JENKINS-27963] Please add support for jenkins pipeline plugin to publish-over-ssh

          E Camden Fisher created issue -
          Baptiste Mathus made changes -
          Labels Original: plugin New: plugin workflow
          Baptiste Mathus made changes -
          Summary Original: Please add support for jenkins workflow plugin to publish-over-ssh New: Please add support for jenkins pipeline plugin to publish-over-ssh
          Jesse Glick made changes -
          Labels Original: plugin workflow New: workflow

          Jesse Glick added a comment -

          Not really essential, since you could already write something like

          sshagent(['my-private-key-credentials-ID']) {
            sh 'scp some-file www@somewhere.net:/apps'
          }
          

          Jesse Glick added a comment - Not really essential, since you could already write something like sshagent([ 'my- private -key-credentials-ID' ]) { sh 'scp some-file www@somewhere.net:/apps' }

          R. Tyler Croy added a comment -

          We're doing something similar for the jenkins website deployment Jenkinsfile.

          it's not exactly ideal, but it works on *nix-type systems which provide scp/sftp command line tools (read: non-Windows). The [Publish Over SSH](https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin) plugin does provide a lot of useful advanced features which normal shelling out doesn't.

          I wouldn't say this is critical, but definitely would be nice IMHO.

          R. Tyler Croy added a comment - We're doing something similar for the jenkins website deployment Jenkinsfile . it's not exactly ideal, but it works on *nix-type systems which provide scp/sftp command line tools (read: non-Windows). The [Publish Over SSH] ( https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin ) plugin does provide a lot of useful advanced features which normal shelling out doesn't. I wouldn't say this is critical, but definitely would be nice IMHO.

          vijaysl added a comment -

          The sshagent doesn't appear to support username password authentication

          vijaysl added a comment - The sshagent doesn't appear to support username password authentication

          Peter Marcoen added a comment - - edited

          If anyone else has trouble implementing Jesse's workaround, know that when you enter global credentials you have to press 'Advanced' and enter an ID, this ID should be used, not the name given to the credential.

          Pretty confusing because the name can be used in the Job-step of ssh-agent but not in the Pipeline-step.
          This took me quite some time to figure out

          Peter Marcoen added a comment - - edited If anyone else has trouble implementing Jesse's workaround, know that when you enter global credentials you have to press 'Advanced' and enter an ID, this ID should be used, not the name given to the credential. Pretty confusing because the name can be used in the Job-step of ssh-agent but not in the Pipeline-step. This took me quite some time to figure out
          Ashudeep Budhiraja made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]

          Hi Jesse, Peter,

          Getting - java.lang.NoSuchMethodError: No such DSL method 'sshagent' found among

          Thanks

          Ashudeep Budhiraja added a comment - Hi Jesse, Peter, Getting - java.lang.NoSuchMethodError: No such DSL method 'sshagent' found among Thanks

            slide_o_mix Alex Earl
            fishnix E Camden Fisher
            Votes:
            38 Vote for this issue
            Watchers:
            50 Start watching this issue

              Created:
              Updated:
              Resolved: