Skip to content

Commit

Permalink
update build utils security (#24)
Browse files Browse the repository at this point in the history
* IS-964: Add security pipeline

* IS-964: Add secirity tools to pipeline

* Switch to Erlang service pipe

* Fix tests
  • Loading branch information
kpy3 authored Jul 7, 2020
1 parent 908c248 commit 8c02949
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 50 deletions.
54 changes: 5 additions & 49 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!groovy
// -*- mode: groovy -*-

def finalHook = {
runStage('store CT logs') {
Expand All @@ -10,57 +11,12 @@ build('kds', '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_22.3.1_plt") {
sh 'make wc_dialyze'
}
}
runStage('test') {
sh "make wc_test"
}
}

runStage('make release') {
withGithubPrivkey {
sh "make wc_release"
}
}
runStage('build image') {
sh "make build_image"
}

try {
if (masterlikeBranch()) {
runStage('push image') {
sh "make push_image"
}
}
} finally {
runStage('rm local image') {
sh 'make rm_local_image'
}
}
}
pipeErlangService.runPipe(false, true)
}

0 comments on commit 8c02949

Please sign in to comment.