Change docker tags in jenkins to use git commit instead of build_id
Build_id can repeat and cause problemsmaster
parent
4a3b587c64
commit
252dec22e1
|
@ -6,8 +6,8 @@ pipeline {
|
|||
script: "git --no-pager show -s --format='%an' ${GIT_COMMIT}"
|
||||
).trim()}"""
|
||||
|
||||
DOCKER_IMAGE_TAG = "panda:build-${env.BUILD_ID}"
|
||||
DOCKER_NAME = "panda-test-${env.BUILD_ID}"
|
||||
DOCKER_IMAGE_TAG = "panda:build-${env.GIT_COMMIT}"
|
||||
DOCKER_NAME = "panda-test-${env.GIT_COMMIT}"
|
||||
}
|
||||
stages {
|
||||
stage('Build Docker Image') {
|
||||
|
|
Loading…
Reference in New Issue