mirror of
https://github.com/valitydev/sequences.git
synced 2024-11-06 02:05:20 +00:00
Update build utils security (#17)
* IS-964: Add security pipeline * Add Erlang Service pipe * Run tests in parallel * Fix run in parallel * Fix build_utils commit * run -> runPipe * Back to call * Fix dialyzer cache * Fix join * Rework parallel * Fix config * Xhange pipe method * New parallel * Do not force run stages in parallel * More on parallel * Add pipeline to parallel * test * remove unknown * test * typo1 * Final cleanup * Anothr try * Rework parallel * One more test * Fix parallel run * Return stages back * Update * Update build_utils
This commit is contained in:
parent
1aa0919184
commit
2ae0eeb4e3
53
Jenkinsfile
vendored
53
Jenkinsfile
vendored
@ -11,55 +11,12 @@ build('sequences', 'docker-host', finalHook) {
|
||||
checkoutRepo()
|
||||
loadBuildUtils()
|
||||
|
||||
def pipeDefault
|
||||
def withWsCache
|
||||
def pipeErlangService
|
||||
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"
|
||||
pipeErlangService = load("${env.JENKINS_LIB}/pipeErlangService.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.7_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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
pipeErlangService.runPipe(true,true)
|
||||
}
|
||||
|
2
Makefile
2
Makefile
@ -17,7 +17,7 @@ BASE_IMAGE_NAME := service-erlang
|
||||
BASE_IMAGE_TAG := da0ab769f01b650b389d18fc85e7418e727cbe96
|
||||
|
||||
# Build image tag to be used
|
||||
BUILD_IMAGE_TAG := 4536c31941b9c27c134e8daf0fd18848809219c9
|
||||
BUILD_IMAGE_TAG := 442c2c274c1d8e484e5213089906a4271641d95e
|
||||
|
||||
CALL_ANYWHERE := all submodules compile xref lint dialyze start devrel release clean distclean
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit ea4aa042f482551d624fd49a570d28488f479e93
|
||||
Subproject commit 91587cccf7f5dbb2b0ccf4ca3b838b22c8c588a0
|
Loading…
Reference in New Issue
Block a user