-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
Would be nice to be able to define sshagent as an option for stage or global pipeline. Here are examples:
// Global option pipeline { options { sshagent('credential-id') } stages { stage('ssh-deploy') { steps { sh 'ssh user@host command' } } }
// option for single stage pipeline { stages { stage('ssh-deploy') { options { sshagent('credential-id') } steps { sh 'ssh user@host command' } } } }
// option for single stage + docker pipeline { stages { stage('ssh-deploy') { agent { docker { image 'ubuntu:16.04' } } options { sshagent('credential-id') } steps { sh 'ssh user@host command' } } } }
[JENKINS-54127] Add new option to pipeline - sshagent
Component/s | New: ssh-agent-plugin [ 17509 ] |
Component/s | New: pipeline-model-definition-plugin [ 21706 ] | |
Component/s | Original: pipeline [ 21692 ] |
Component/s | Original: pipeline-model-definition-plugin [ 21706 ] |
Component/s | New: pipeline-model-definition-plugin [ 21706 ] | |
Component/s | Original: ssh-agent-plugin [ 17509 ] |
Ought to appear automatically given the existence of SSHAgentStep; not sure why it does not.