mirror of
https://github.com/valitydev/url-shortener.git
synced 2024-11-06 10:05:20 +00:00
Update build utils security (#31)
* Switch to Erlang service pipe * Update build_utils
This commit is contained in:
parent
c0b9715e2f
commit
ec89811b6b
51
Jenkinsfile
vendored
51
Jenkinsfile
vendored
@ -11,55 +11,12 @@ build('url-shortener', 'docker-host', finalHook) {
|
|||||||
checkoutRepo()
|
checkoutRepo()
|
||||||
loadBuildUtils()
|
loadBuildUtils()
|
||||||
|
|
||||||
def pipeDefault
|
def pipeErlangService
|
||||||
def withWsCache
|
|
||||||
runStage('load pipeline') {
|
runStage('load pipeline') {
|
||||||
env.JENKINS_LIB = "build_utils/jenkins_lib"
|
env.JENKINS_LIB = "build_utils/jenkins_lib"
|
||||||
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
env.SH_TOOLS = "build_utils/sh"
|
||||||
withWsCache = load("${env.JENKINS_LIB}/withWsCache.groovy")
|
pipeErlangService = load("${env.JENKINS_LIB}/pipeErlangService.groovy")
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeDefault() {
|
pipeErlangService.runPipe(true, true)
|
||||||
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_22.3.1_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'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 4e6aae0f31885d3c56d09c72de7ef8d432149dbf
|
Subproject commit 540183862bc9fd04682e226de2056a320fd44be9
|
Loading…
Reference in New Issue
Block a user