Actualiser Jenkinsfile
This commit is contained in:
parent
eaa39c14fe
commit
6895e2513a
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user