devops-shit/jenkins/base-system/Jenkinsfile

22 lines
567 B
Plaintext
Raw Normal View History

2021-12-26 23:28:07 +03:00
pipeline {
agent any
stages {
stage('clone') {
steps {
git branch: 'master', url: 'ssh://gitea@git.lulzette.ru:3111/lulzette/devops-shit.git'
}
}
stage('check') {
steps {
2021-12-26 23:36:21 +03:00
sh 'ansible-playbook -i jenkins/base-system/inventory -C ansible/base-system/playbook.yml'
2021-12-26 23:28:07 +03:00
}
}
stage('run!') {
steps {
2021-12-26 23:36:21 +03:00
sh 'ansible-playbook -i jenkins/base-system/inventory ansible/base-system/playbook.yml'
2021-12-26 23:28:07 +03:00
}
}
}
}