Skip to content

Instantly share code, notes, and snippets.

@jamroks
Created October 18, 2018 18:14
Show Gist options
  • Save jamroks/7e86b8db96c2b92e48ba653fcef9f495 to your computer and use it in GitHub Desktop.
Save jamroks/7e86b8db96c2b92e48ba653fcef9f495 to your computer and use it in GitHub Desktop.
pipeline {
agent { label "dockeragent"}
stages {
stage ('Bundler Setup'){
steps {
sh 'bundle install'
echo 'finished installing gem file'
}
}
stage ('KitchenCi Create instance'){
steps {
sh 'kitchen create '
}
}
stage ('KitchenCi Converge instance'){
steps {
sh 'kitchen converge'
}
}
stage ('KitchenCi Verify instance'){
steps {
sh 'kitchen verify case1'
}
}
stage ('KitchenCi Destroy instance'){
steps {
sh 'kitchen destroy'
}
}
stage ('cleanup workspace'){
steps {
echo 'deleting last workspace file'
deleteDir()
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment