mirror of
https://github.com/valitydev/hellgate.git
synced 2024-11-06 10:55:22 +00:00
514e76a6f9
* MSPF-467: Update erlang and deps * MSPF-467: Update service-erlang
67 lines
1.3 KiB
Groovy
67 lines
1.3 KiB
Groovy
#!groovy
|
|
// -*- mode: groovy -*-
|
|
|
|
def finalHook = {
|
|
runStage('store CT logs') {
|
|
archive '_build/test/logs/'
|
|
}
|
|
}
|
|
|
|
build('hellgate', 'docker-host', finalHook) {
|
|
checkoutRepo()
|
|
loadBuildUtils()
|
|
|
|
def pipeDefault
|
|
def withWsCache
|
|
runStage('load pipeline') {
|
|
env.JENKINS_LIB = "build_utils/jenkins_lib"
|
|
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
|
withWsCache = load("${env.JENKINS_LIB}/withWsCache.groovy")
|
|
}
|
|
|
|
pipeDefault() {
|
|
if (env.BRANCH_NAME != 'master') {
|
|
runStage('compile') {
|
|
withGithubPrivkey {
|
|
sh 'make wc_compile'
|
|
}
|
|
}
|
|
runStage('lint') {
|
|
sh 'make wc_lint'
|
|
}
|
|
runStage('xref') {
|
|
sh 'make wc_xref'
|
|
}
|
|
runStage('dialyze') {
|
|
withWsCache("_build/default/rebar3_21.3.8.4_plt") {
|
|
sh 'make wc_dialyze'
|
|
}
|
|
}
|
|
runStage('test') {
|
|
sh "make wdeps_test"
|
|
}
|
|
}
|
|
runStage('make release') {
|
|
withGithubPrivkey {
|
|
sh "make wc_release"
|
|
}
|
|
}
|
|
runStage('build image') {
|
|
sh "make build_image"
|
|
}
|
|
|
|
try {
|
|
if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME.startsWith('epic')) {
|
|
runStage('push image') {
|
|
sh "make push_image"
|
|
}
|
|
}
|
|
} finally {
|
|
runStage('rm local image') {
|
|
sh 'make rm_local_image'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|