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