Created
April 30, 2018 17:42
-
-
Save boxrick/960b6152319989e2628a99cf2d1ca725 to your computer and use it in GitHub Desktop.
Pipeline
This file contains 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 { | |
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