2016-06-26 17:42:40 +00:00
|
|
|
#!groovy
|
|
|
|
|
2016-08-26 15:15:48 +00:00
|
|
|
def finalHook = {
|
|
|
|
runStage('store CT logs') {
|
|
|
|
archive '_build/test/logs/'
|
2016-06-26 17:42:40 +00:00
|
|
|
}
|
2016-08-26 15:15:48 +00:00
|
|
|
}
|
2016-06-26 17:42:40 +00:00
|
|
|
|
2016-08-26 15:15:48 +00:00
|
|
|
build('woody_erlang', 'docker-host', finalHook) {
|
|
|
|
checkoutRepo()
|
|
|
|
loadBuildUtils()
|
2016-06-26 17:42:40 +00:00
|
|
|
|
2016-08-26 15:15:48 +00:00
|
|
|
def pipeDefault
|
2016-11-18 13:49:05 +00:00
|
|
|
def withWsCache
|
2016-08-26 15:15:48 +00:00
|
|
|
runStage('load pipeline') {
|
|
|
|
env.JENKINS_LIB = "build_utils/jenkins_lib"
|
|
|
|
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
2016-11-18 13:49:05 +00:00
|
|
|
withWsCache = load("${env.JENKINS_LIB}/withWsCache.groovy")
|
2016-06-26 17:42:40 +00:00
|
|
|
}
|
|
|
|
|
2016-08-26 15:15:48 +00:00
|
|
|
pipeDefault() {
|
|
|
|
runStage('compile') {
|
|
|
|
withGithubPrivkey {
|
|
|
|
sh 'make wc_compile'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
runStage('lint') {
|
|
|
|
sh 'make wc_lint'
|
|
|
|
}
|
|
|
|
runStage('xref') {
|
|
|
|
sh 'make wc_xref'
|
|
|
|
}
|
|
|
|
runStage('dialyze') {
|
2016-11-18 13:49:05 +00:00
|
|
|
withWsCache("_build/default/rebar3_18.3_plt") {
|
|
|
|
sh 'make wc_dialyze'
|
|
|
|
}
|
2016-08-26 15:15:48 +00:00
|
|
|
}
|
|
|
|
runStage('test') {
|
|
|
|
sh "make wc_test"
|
|
|
|
}
|
2016-06-26 17:42:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|