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}" } }