mirror of
https://github.com/valitydev/hellgate.git
synced 2024-11-06 10:55:22 +00:00
b78c1af62d
* MSPF-73: use build_utils - align with the latest & greatest WoWs
50 lines
904 B
Groovy
50 lines
904 B
Groovy
#!groovy
|
|
|
|
def finalHook = {
|
|
runStage('store CT logs') {
|
|
archive '_build/test/logs/'
|
|
}
|
|
}
|
|
|
|
build('hellgate', 'docker-host', finalHook) {
|
|
checkoutRepo()
|
|
loadBuildUtils()
|
|
|
|
def pipeDefault
|
|
runStage('load pipeline') {
|
|
env.JENKINS_LIB = "build_utils/jenkins_lib"
|
|
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
|
}
|
|
|
|
pipeDefault() {
|
|
runStage('compile') {
|
|
sh 'make wc_compile'
|
|
}
|
|
runStage('lint') {
|
|
sh 'make wc_lint'
|
|
}
|
|
runStage('xref') {
|
|
sh 'make wc_xref'
|
|
}
|
|
runStage('dialyze') {
|
|
sh 'make wc_dialyze'
|
|
}
|
|
runStage('test') {
|
|
sh "make wdeps_test"
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|