hellgate/Jenkinsfile
2016-07-15 15:23:13 +03:00

44 lines
787 B
Groovy

#!groovy
// Args:
// GitHub repo name
// Jenkins agent label
// Tracing artifacts to be stored alongside build logs
pipeline("hellgate", 'docker-host', "_build/") {
runStage('submodules') {
sh 'make w_container_submodules'
}
runStage('rebar-update') {
sh 'make w_container_rebar-update'
}
runStage('compile') {
sh 'make w_container_compile'
}
// ToDo: Uncomment the stage as soon as Elvis is in the build image!
// runStage('lint') {
// sh 'make w_container_lint'
// }
runStage('xref') {
sh 'make w_container_xref'
}
runStage('test') {
sh "make w_compose_test"
}
runStage('dialyze') {
sh 'make w_container_dialyze'
}
if (env.BRANCH_NAME == 'master') {
runStage('push container') {
sh 'make push'
}
}
}