Change docker tags in jenkins to use git commit instead of build_id

Build_id can repeat and cause problems
master
Nigel Armstrong 2019-05-10 15:47:04 -07:00
parent 4a3b587c64
commit 252dec22e1
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -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') {