mirror of
https://github.com/valitydev/wallet-utils.git
synced 2024-11-06 08:55:19 +00:00
42 lines
805 B
Plaintext
42 lines
805 B
Plaintext
|
#!groovy
|
||
|
|
||
|
build('wallet-utils', 'docker-host') {
|
||
|
checkoutRepo()
|
||
|
loadBuildUtils()
|
||
|
|
||
|
def pipeDefault
|
||
|
def withWsCache
|
||
|
runStage('load pipeline') {
|
||
|
env.JENKINS_LIB = "build_utils/jenkins_lib"
|
||
|
pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy")
|
||
|
withWsCache = load("${env.JENKINS_LIB}/withWsCache.groovy")
|
||
|
}
|
||
|
|
||
|
pipeDefault() {
|
||
|
runStage('init') {
|
||
|
withGithubSshCredentials {
|
||
|
sh 'make wc_init'
|
||
|
}
|
||
|
}
|
||
|
runStage('build') {
|
||
|
sh 'make wc_build'
|
||
|
}
|
||
|
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'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|