This commit is contained in:
vincent
2023-01-10 12:57:57 +08:00
parent a3b784d768
commit 2ec52c6780

View File

@@ -29,15 +29,15 @@ pipeline {
// Use a scripted pipeline.
script {
stage('Push image') {
sh "echo ${BUILD_TAG}"
sh "echo ${$TAG_NAME}"
sh "docker login --username=${dockerUser} --password=${dockerPassword}"
sh '''
make -C bridge docker
make -C coordinator docker
docker tag scrolltech/bridge:${BUILD_TAG}
docker tag scrolltech/coordinator:${BUILD_TAG}
docker push scrolltech/bridge:${BUILD_TAG}
docker push scrolltech/coordinator:${BUILD_TAG}
docker tag scrolltech/bridge:${$TAG_NAME}
docker tag scrolltech/coordinator:${$TAG_NAME}
docker push scrolltech/bridge:${$TAG_NAME}
docker push scrolltech/coordinator:${$TAG_NAME}
'''
}
}
@@ -48,7 +48,7 @@ pipeline {
post {
always {
cleanWs()
slackSend(message: "${JOB_BASE_NAME} ${GIT_COMMIT} #${BUILD_TAG} Tag build ${currentBuild.result}")
slackSend(message: "${JOB_BASE_NAME} ${GIT_COMMIT} #${$TAG_NAME} Tag build ${currentBuild.result}")
}
}
}