Skip to content

Instantly share code, notes, and snippets.

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