– Add a read/write ssh-key to e.g. bitbucket
– Add the key to Jenkins
– Go to „pipeline syntax“ and create „sshagent“ step with just create credential identifier
sshagent([‚the-credentials-id‘]) {
// your code
}
IT things to remember.
– Add a read/write ssh-key to e.g. bitbucket
– Add the key to Jenkins
– Go to „pipeline syntax“ and create „sshagent“ step with just create credential identifier
sshagent([‚the-credentials-id‘]) {
// your code
}