Orchestrate Ansible playbook with Jenkins

This commit is contained in:
2020-04-02 20:03:40 -04:00
parent 2fc3910c3e
commit 6218c824d8
5 changed files with 81 additions and 0 deletions

18
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,18 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
dir ('environments') {
git credentialsId: 'b643c25a-d040-4692-8067-d82511509bd0',
branch: 'prom', url: 'git@github.com:krislamo/moxie-env.git'
}
ansiblePlaybook credentialsId: '4e3a5a7a-fca5-4f10-89a4-8996cf14fec7',
playbook: 'dockerbox.yml'
}
}
}
}