Skip to content

Commit

Permalink
Change docker tags in jenkins to use git commit instead of build_id
Browse files Browse the repository at this point in the history
Build_id can repeat and cause problems
  • Loading branch information
legonigel committed May 10, 2019
1 parent 4a3b587 commit 252dec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 252dec2

Please sign in to comment.