Switch to Erlang pipe (#10)

This commit is contained in:
Sergey Yelin 2020-07-27 21:10:40 +03:00 committed by GitHub
parent a73d40b053
commit d6d8c570e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 26 deletions

34
Jenkinsfile vendored
View File

@ -10,34 +10,18 @@ build('woody_user_identity', 'docker-host', finalHook) {
checkoutRepo()
loadBuildUtils()
def pipeDefault
def withWsCache
def pipeErlangLib
runStage('load pipeline') {
env.JENKINS_LIB = "build_utils/jenkins_lib"
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
withWsCache = load("${env.JENKINS_LIB}/withWsCache.groovy")
env.SH_TOOLS = "build_utils/sh"
pipeErlangLib = load("${env.JENKINS_LIB}/pipeErlangLib.groovy")
}
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 wc_test"
}
}
// NOTE: Parallel pipeline almost always fails because of
// rebar3's design (it uses link for libraries, so
// parallel runs with different profiles brake each other)
// To prevent this use sequential pipleine here
pipeErlangLib.runPipe(false)
}

@ -1 +1 @@
Subproject commit 4e6aae0f31885d3c56d09c72de7ef8d432149dbf
Subproject commit 540183862bc9fd04682e226de2056a320fd44be9