Actualiser Jenkinsfile
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user