devops-shit/jenkins/base-system/Jenkinsfile

22 lines
567 B
Groovy

pipeline {
agent any
stages {
stage('clone') {
steps {
git branch: 'master', url: 'ssh://gitea@git.lulzette.ru:3111/lulzette/devops-shit.git'
}
}
stage('check') {
steps {
sh 'ansible-playbook -i jenkins/base-system/inventory -C ansible/base-system/playbook.yml'
}
}
stage('run!') {
steps {
sh 'ansible-playbook -i jenkins/base-system/inventory ansible/base-system/playbook.yml'
}
}
}
}