From 81ef72f8437b3e3381121ec5d18ea97c864f9661 Mon Sep 17 00:00:00 2001 From: shindw Date: Tue, 3 Feb 2026 10:24:06 +0900 Subject: [PATCH] =?UTF-8?q?[api]=20Jenkinsfile.pjt=20=EC=9E=91=EC=97=85?= =?UTF-8?q?=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile.pjt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile.pjt b/Jenkinsfile.pjt index 6aadebd..afa9862 100644 --- a/Jenkinsfile.pjt +++ b/Jenkinsfile.pjt @@ -31,12 +31,14 @@ pipeline { } } - stage('3) image tab create') { + stage('3) image tag create') { steps { script { - env.SHORT_SHA = sh(script: "git rev-parse --short HEAD", returnStdout: true).trim() - echo "SHORT_SHA = ${env.SHORT_SHA}" - env.IMAGE_TAG = "${env.BUILD_NUMBER}-${env.SHORT_SHA}" + env.IMAGE_TAG = sh( + script: 'echo "${BUILD_NUMBER}-$(git rev-parse --short HEAD)"', + returnStdout: true + ).trim() + echo "IMAGE_TAG = ${env.IMAGE_TAG}" } }