Actualiser Jenkinsfile
This commit is contained in:
parent
a1a74cd0e1
commit
9cac869348
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -3,6 +3,7 @@ pipeline {
|
||||
|
||||
environment {
|
||||
ANSIBLE_INVENTORY = 'jenkins-update/inventory.ini'
|
||||
ANSIBLE_INVENTORY_REBOOT = 'jenkins-update/inventory_reboot.ini'
|
||||
ANSIBLE_PLAYBOOK = 'jenkins-update/update_debian.yml'
|
||||
}
|
||||
|
||||
@ -24,6 +25,14 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Reboot PVE BACKUP') {
|
||||
steps {
|
||||
// Construction et exécution de la commande Ansible
|
||||
sh "ansible-playbook -i ${ANSIBLE_INVENTORY_REBOOT} ${ANSIBLE_PLAYBOOK}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
// Nettoyage de l'espace de travail
|
||||
|
Loading…
x
Reference in New Issue
Block a user