From 252dec22e15d7bea630b2ea87e2ce86ab68ff403 Mon Sep 17 00:00:00 2001 From: Nigel Armstrong Date: Fri, 10 May 2019 15:47:04 -0700 Subject: [PATCH] Change docker tags in jenkins to use git commit instead of build_id Build_id can repeat and cause problems --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b90a8ca3833680..c67a1005151e49 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') {