Téléverser les fichiers vers "/"

This commit is contained in:
2025-04-15 22:49:09 +00:00
commit cbd11cb6bf
3 changed files with 45 additions and 0 deletions

31
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,31 @@
pipeline {
agent any
environment {
ANSIBLE_INVENTORY = 'inventory.ini'
ANSIBLE_PLAYBOOK = 'update_debian.yml'
}
stages {
stage('Checkout') {
steps {
git 'https://git.zestes.fr/garfi/jenkins-update.git'
}
}
stage('Run Ansible Playbook') {
steps {
script {
def ansibleCommand = "ansible-playbook -i ${ANSIBLE_INVENTORY} ${ANSIBLE_PLAYBOOK}"
sh ansibleCommand
}
}
}
}
post {
always {
cleanWs()
}
}
}