dmt-client/Jenkinsfile

49 lines
950 B
Plaintext
Raw Normal View History

2016-08-31 13:43:32 +00:00
#!groovy
// -*- mode: groovy -*-
2016-08-31 13:43:32 +00:00
def finalHook = {
runStage('store CT logs') {
archive '_build/test/logs/'
}
}
2016-08-31 13:43:32 +00:00
build('dmt_client', 'docker-host', finalHook) {
2016-08-31 13:43:32 +00:00
checkoutRepo()
runStage('load_builtils') {
withGithubSshCredentials {
sh 'git submodule update --init'
}
2016-08-31 13:43:32 +00:00
}
def pipeDefault
def withWsCache
2016-08-31 13:43:32 +00:00
runStage('load pipeline') {
env.JENKINS_LIB = "builtils/jenkins_lib"
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
withWsCache = load("${env.JENKINS_LIB}/withWsCache.groovy")
2016-08-31 13:43:32 +00:00
}
pipeDefault() {
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"
}
2016-08-31 13:43:32 +00:00
}
}