Skip to content

Instantly share code, notes, and snippets.

@boxrick
Created April 30, 2018 17:42
Show Gist options
  • Save boxrick/960b6152319989e2628a99cf2d1ca725 to your computer and use it in GitHub Desktop.
Save boxrick/960b6152319989e2628a99cf2d1ca725 to your computer and use it in GitHub Desktop.
Pipeline
pipeline {
agent none
stages {
stage('Check Role') {
parallel {
stage('Test Xenial') {
agent any
steps {
sh 'cd tests && vagrant destroy --force || true'
sh 'cd tests && vagrant up --provider docker xenial'
sh 'cd tests && vagrant provision'
}
post {
always {
sh 'cd tests && vagrant destroy --force'
}
}
}
stage('Test Bionic') {
agent any
steps {
sh 'cd tests && vagrant destroy --force || true'
sh 'cd tests && vagrant up --provider docker bionic'
sh 'cd tests && vagrant provision'
}
post {
always {
sh 'cd tests && vagrant destroy --force'
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment