From a4d2127c8b3b4ba14fff580f1c81b4c75f52aea5 Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Mon, 13 Jan 2025 13:39:00 +0700 Subject: [PATCH] fix --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index cceb019..2003806 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,8 @@ pipeline { script { // Checkout and get git commit hash checkout scm - GIT_COMMIT_HASH = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim() + def commitHash = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim() + GIT_COMMIT_HASH = commitHash echo "Git commit hash: ${GIT_COMMIT_HASH}" } }