Created
April 30, 2018 18:04
-
-
Save boxrick/30315ac1f03af4723e2ab4472a276f14 to your computer and use it in GitHub Desktop.
Pipeline2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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