Actualiser Jenkinsfile

This commit is contained in:
garfi 2025-05-17 22:52:30 +00:00
parent a1a74cd0e1
commit 9cac869348

9
Jenkinsfile vendored
View File

@ -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