SSH Agent Plugin

sshagent: SSH Agent


node {
  sshagent (credentials: ['deploy-dev']) {
    sh 'ssh -o StrictHostKeyChecking=no -l cloudbees 192.168.1.106 uname -a'
  }
}

Multiple credentials could be passed in the array but it is not supported using Snippet Generator.

credentials

Array/List

Type: String

ignoreMissing (optional)

Type: boolean