try again.

This commit is contained in:
Kameron Kenny - pi501 2024-12-27 16:42:20 -05:00
parent 2429e62d88
commit 4413ddfbb4
1 changed files with 45 additions and 40 deletions

41
Jenkinsfile vendored
View File

@ -1,4 +1,23 @@
pipeline {
agent {
label 'pi501.in.thelinuxpro.net'
}
stages {
stage("verify tooling") {
steps {
sh '''
docker version
docker info
docker compose version
'''
}
}
stage("Push out new nrpe configurations") {
steps {
script {
def remote = [:]
remote.pi501 = [:]
remote.pi502 = [:]
@ -20,38 +39,24 @@ pipeline {
remote.pi503.allowAnyHosts = true
remote.pi504.allowAnyHosts = true
agent {
label 'pi501.in.thelinuxpro.net'
}
stages {
stage("verify tooling") {
steps {
sh '''
docker version
docker info
docker compose version
'''
}
}
stage("Push out new nrpe configurations") {
steps {
sshagent(credentials: ['jenkins']) {
sshPut remote: remote.pi501, from: 'nrpe', into: '/tmp', override: true
sshCommand remote: remote.pi501, command: 'cd /tmp/nrpe/; chmod +x setup.sh; sudo ./setup.sh'
sshRemove remote: pi501, path: '/tmp/nrpe'
}
sshagent(credentials: ['jenkins']) {
sshPut remote: remote.pi502, from: 'nrpe', into: '/tmp', override: true
sshCommand remote: remote.pi502, command: 'cd /tmp/nrpe/; chmod +x setup.sh; sudo ./setup.sh'
sshRemove remote: pi502, path: '/tmp/nrpe'
}
sshagent(credentials: ['jenkins']) {
sshPut remote: remote.pi503, from: 'nrpe', into: '/tmp', override: true
sshCommand remote: remote.pi503, command: 'cd /tmp/nrpe/; chmod +x setup.sh; sudo ./setup.sh'
sshRemove remote: pi503, path: '/tmp/nrpe'
}
sshagent(credentials: ['jenkins']) {
sshPut remote: remote.pi504, from: 'nrpe', into: '/tmp', override: true
sshCommand remote: remote.pi504, command: 'cd /tmp/nrpe/; chmod +x setup.sh; sudo ./setup.sh'
@ -59,7 +64,7 @@ pipeline {
}
}
}
}
stage("Build Containers and push to registry") {
steps {