Update Jenkinsfile
BOT_open_sesam/pipeline/head There was a failure building this commit
Details
BOT_open_sesam/pipeline/head There was a failure building this commit
Details
parent
ea57137dc3
commit
253da9479c
|
|
@ -34,23 +34,23 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
stage ('build tunnel image and push') {
|
||||
steps {
|
||||
dir('tunnel'){
|
||||
script {
|
||||
docker.withRegistry("${REGISTRY_URL}", 'jenkins_harbor') {
|
||||
def TunnelImage = docker.build(
|
||||
"${REGISTRY}/${TUNNEL_IMAGE_NAME}:${env.BUILD_NUMBER}",
|
||||
"--label build_number=${IMAGE_TAG} " +
|
||||
"--label git_commit=${env.GIT_COMMIT} " +
|
||||
"."
|
||||
)
|
||||
TunnelImage.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# stage ('build tunnel image and push') {
|
||||
# steps {
|
||||
# dir('tunnel'){
|
||||
# script {
|
||||
# docker.withRegistry("${REGISTRY_URL}", 'jenkins_harbor') {
|
||||
# def TunnelImage = docker.build(
|
||||
# "${REGISTRY}/${TUNNEL_IMAGE_NAME}:${env.BUILD_NUMBER}",
|
||||
# "--label build_number=${IMAGE_TAG} " +
|
||||
# "--label git_commit=${env.GIT_COMMIT} " +
|
||||
# "."
|
||||
# )
|
||||
# TunnelImage.push()
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
stage ('clear after build and push') {
|
||||
steps {
|
||||
|
|
@ -65,10 +65,11 @@ pipeline {
|
|||
script {
|
||||
sh '''
|
||||
export BOT_IMAGE_TAG=${IMAGE_TAG}
|
||||
export TUNNEL_IMAGE_TAG=${IMAGE_TAG}
|
||||
#export TUNNEL_IMAGE_TAG=${IMAGE_TAG}
|
||||
|
||||
# Pull new images explicitly
|
||||
docker-compose pull bot_open_sesam tunnel_open_sesam
|
||||
docker-compose pull bot_open_sesam
|
||||
#tunnel_open_sesam
|
||||
|
||||
# Deploy with specific project name
|
||||
docker-compose up -d --remove-orphans
|
||||
|
|
|
|||
Loading…
Reference in New Issue