try again.....
This commit is contained in:
parent
0721993319
commit
928a47942b
|
@ -18,7 +18,7 @@ pipeline {
|
|||
stage("Push out new nrpe configurations") {
|
||||
steps {
|
||||
script {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'jenkins', keyFileVariable: 'identity', passphraseVariable: '', usernameVariable: 'userName')]) {
|
||||
//withCredentials([sshUserPrivateKey(credentialsId: 'jenkins', keyFileVariable: 'identity', passphraseVariable: '', usernameVariable: 'userName')]) {
|
||||
def remote = [:]
|
||||
remote.pi501 = [:]
|
||||
remote.pi502 = [:]
|
||||
|
@ -65,7 +65,7 @@ pipeline {
|
|||
sshPut remote: remote.pi504, from: 'nrpe', into: '/tmp'
|
||||
sshCommand remote: remote.pi504, command: 'cd /tmp/nrpe/; chmod +x setup.sh; sudo ./setup.sh'
|
||||
sshRemove remote: pi504, path: '/tmp/nrpe'
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue