diff --git a/Jenkinsfile b/Jenkinsfile index 836c89d..0726b7d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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() } } -} \ No newline at end of file +}