2016-06-29 13:58:48 +00:00
|
|
|
#!groovy
|
|
|
|
|
2016-08-08 18:16:17 +00:00
|
|
|
def finalHook = {
|
|
|
|
runStage('store CT logs') {
|
|
|
|
archive '_build/test/logs/'
|
2016-07-24 16:39:27 +00:00
|
|
|
}
|
2016-08-08 18:16:17 +00:00
|
|
|
}
|
2016-06-29 13:58:48 +00:00
|
|
|
|
2016-08-08 18:16:17 +00:00
|
|
|
build('hellgate', 'docker-host', finalHook) {
|
|
|
|
checkoutRepo()
|
|
|
|
loadBuildUtils()
|
2016-06-29 13:58:48 +00:00
|
|
|
|
2016-08-08 18:16:17 +00:00
|
|
|
def pipeDefault
|
|
|
|
runStage('load pipeline') {
|
|
|
|
env.JENKINS_LIB = "build_utils/jenkins_lib"
|
|
|
|
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
2016-06-29 13:58:48 +00:00
|
|
|
}
|
|
|
|
|
2016-08-08 18:16:17 +00:00
|
|
|
pipeDefault() {
|
|
|
|
runStage('compile') {
|
2016-08-12 12:40:18 +00:00
|
|
|
withGithubPrivkey {
|
|
|
|
sh 'make wc_compile'
|
|
|
|
}
|
2016-08-08 18:16:17 +00:00
|
|
|
}
|
|
|
|
runStage('lint') {
|
|
|
|
sh 'make wc_lint'
|
|
|
|
}
|
|
|
|
runStage('xref') {
|
|
|
|
sh 'make wc_xref'
|
|
|
|
}
|
|
|
|
runStage('dialyze') {
|
|
|
|
sh 'make wc_dialyze'
|
|
|
|
}
|
|
|
|
runStage('test') {
|
|
|
|
sh "make wdeps_test"
|
|
|
|
}
|
2016-06-29 13:58:48 +00:00
|
|
|
|
2016-08-08 18:16:17 +00:00
|
|
|
if (env.BRANCH_NAME == 'master') {
|
|
|
|
runStage('make release') {
|
|
|
|
sh "make wc_release"
|
|
|
|
}
|
|
|
|
runStage('build image') {
|
|
|
|
sh "make build_image"
|
|
|
|
}
|
|
|
|
runStage('push image') {
|
|
|
|
sh "make push_image"
|
|
|
|
}
|
2016-06-29 13:58:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|