try again.....

This commit is contained in:
Kameron Kenny - pi501 2024-12-27 17:50:03 -05:00
parent 0721993319
commit 928a47942b
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -18,7 +18,7 @@ pipeline {
stage("Push out new nrpe configurations") { stage("Push out new nrpe configurations") {
steps { steps {
script { script {
withCredentials([sshUserPrivateKey(credentialsId: 'jenkins', keyFileVariable: 'identity', passphraseVariable: '', usernameVariable: 'userName')]) { //withCredentials([sshUserPrivateKey(credentialsId: 'jenkins', keyFileVariable: 'identity', passphraseVariable: '', usernameVariable: 'userName')]) {
def remote = [:] def remote = [:]
remote.pi501 = [:] remote.pi501 = [:]
remote.pi502 = [:] remote.pi502 = [:]
@ -65,7 +65,7 @@ pipeline {
sshPut remote: remote.pi504, from: 'nrpe', into: '/tmp' sshPut remote: remote.pi504, from: 'nrpe', into: '/tmp'
sshCommand remote: remote.pi504, command: 'cd /tmp/nrpe/; chmod +x setup.sh; sudo ./setup.sh' sshCommand remote: remote.pi504, command: 'cd /tmp/nrpe/; chmod +x setup.sh; sudo ./setup.sh'
sshRemove remote: pi504, path: '/tmp/nrpe' sshRemove remote: pi504, path: '/tmp/nrpe'
} //}
} }
} }
} }