From 2b6156955861ba243800306a646d9174d5a7c605 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Wed, 11 Sep 2024 12:53:26 +0530 Subject: [PATCH] Revert "ci: use GIT_REF for building docker image when set (#1218)" This reverts commit 1a96cd22714f75d912f98ff245c1d86b3cb46158. --- ci/Jenkinsfile.docker | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ci/Jenkinsfile.docker b/ci/Jenkinsfile.docker index 60ea3633..0658364d 100644 --- a/ci/Jenkinsfile.docker +++ b/ci/Jenkinsfile.docker @@ -43,10 +43,9 @@ pipeline { stages { stage('Build') { steps { script { - def commitOrRef = params.GIT_REF ? params.GIT_REF.take(8) : GIT_COMMIT.take(8) image = docker.build( - "${params.IMAGE_NAME}:${params.IMAGE_TAG ?: commitOrRef}", - "--build-arg='GIT_COMMIT=${commitOrRef}' ." + "${params.IMAGE_NAME}:${params.IMAGE_TAG ?: GIT_COMMIT.take(8)}", + "--build-arg='GIT_COMMIT=${GIT_COMMIT.take(8)}' ." ) } } }