2016-06-29 13:58:48 +00:00
|
|
|
#!groovy
|
|
|
|
|
|
|
|
// Args:
|
|
|
|
// GitHub repo name
|
|
|
|
// Jenkins agent label
|
|
|
|
// Tracing artifacts to be stored alongside build logs
|
|
|
|
pipeline("hellgate", 'docker-host', "_build/") {
|
2016-07-15 12:23:13 +00:00
|
|
|
|
2016-07-15 13:21:30 +00:00
|
|
|
runStage('submodules') {
|
|
|
|
sh 'make w_container_submodules'
|
2016-07-15 12:23:13 +00:00
|
|
|
}
|
|
|
|
|
2016-06-29 13:58:48 +00:00
|
|
|
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') {
|
2016-07-15 11:55:00 +00:00
|
|
|
sh "make w_compose_test"
|
2016-06-29 13:58:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
runStage('dialyze') {
|
|
|
|
sh 'make w_container_dialyze'
|
|
|
|
}
|
|
|
|
|
|
|
|
if (env.BRANCH_NAME == 'master') {
|
|
|
|
runStage('push container') {
|
|
|
|
sh 'make push'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|