node {
//jenkins_pk is the ID of the same credentials used to checkout this script
sshagent(['jenkins_pk']) {
git url: 'g...@bitbucket.org:houbie/simplegroovy.git'
}
} git url: 'g...@bitbucket.org:houbie/simplegroovy.git', credentialsId: 'jenkins_pk'