Actualiser Jenkinsfile

This commit is contained in:
garfi 2025-05-17 22:59:49 +00:00
parent eaa39c14fe
commit 6895e2513a

9
Jenkinsfile vendored
View File

@ -11,8 +11,6 @@ pipeline {
stages {
stage('Clone git') {
steps {
// Attention : cela supprimera tous les fichiers dans le répertoire de travail
sh "rm -rf *"
// Clonage du dépôt Git
sh "git clone https://git.zestes.fr/garfi/jenkins-update.git"
}
@ -24,12 +22,11 @@ pipeline {
sh "ansible-playbook -i ${ANSIBLE_INVENTORY} ${ANSIBLE_PLAYBOOK}"
}
}
}
stage('Reboot PVE BACKUP') {
stage('Reboot PVE BACKUP') {
steps {
// Construction et exécution de la commande Ansible
sh "ansible-playbook -i ${ANSIBLE_INVENTORY_REBOOT} ${ANSIBLE_PLAYBOOK}"
sh "ansible-playbook -i ${ANSIBLE_INVENTORY_REBOOT} ${ANSIBLE_PLAYBOOK_REBOOT}"
}
}
}
@ -40,4 +37,4 @@ pipeline {
cleanWs()
}
}
}
}