holmes/Jenkinsfile
Igor Savchuk bb71cce35b fix empty damsel (#3)
* fix empty damsel

* fix git

* fix wc_compile

* copy only damsel/proto
2016-10-20 17:17:10 +02:00

37 lines
679 B
Groovy

#!groovy
build('image-inspector', 'docker-host') {
checkoutRepo()
loadBuildUtils()
def pipeDefault
runStage('load pipeline') {
env.JENKINS_LIB = "build_utils/jenkins_lib"
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
}
pipeDefault() {
runStage('fetch submodules') {
withGithubPrivkey {
sh 'make submodules'
}
}
runStage('build image') {
sh 'make build_image'
}
try {
if (env.BRANCH_NAME == 'master') {
runStage('push image') {
sh 'make push_image'
}
}
} finally {
runStage('rm local image') {
sh 'make rm_local_image'
}
}
}
}