control-center/Jenkinsfile
Aleksandra Usacheva 3b472fe8fb
FE-1062: new section for claim n new conversation for them (#144)
* FE-1062: new section for claim n new conversation for them
2020-07-02 12:01:55 +03:00

44 lines
869 B
Groovy

#!groovy
build('control-center', '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")
}
def pipeline = {
runStage('init') {
withGithubSshCredentials {
withGithubToken {
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'
}
}
}
pipeDefault(pipeline)
}