Actualiser Jenkinsfile

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

5
Jenkinsfile vendored
View File

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