Merge pull request #5 from rbkmoney/update-build_utils

Update build utils
This commit is contained in:
Sergey Yelin 2020-07-27 21:11:01 +03:00 committed by GitHub
commit 5a3b084fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 34 deletions

42
Jenkinsfile vendored
View File

@ -11,42 +11,18 @@ build('cowboy_cors', '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() {
// 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
if (!masterlikeBranch()) {
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.1.1_plt") {
sh 'make wc_dialyze'
}
}
runStage('test') {
sh "make wc_test"
}
}
}
pipeErlangLib.runPipe(false)
}

@ -1 +1 @@
Subproject commit 870b70a63af18fc7a02c9ff26b06132d2b1993cb
Subproject commit 540183862bc9fd04682e226de2056a320fd44be9