|
|
|
@ -18,7 +18,8 @@ pipeline {
|
|
|
|
script {
|
|
|
|
script {
|
|
|
|
// Checkout and get git commit hash
|
|
|
|
// Checkout and get git commit hash
|
|
|
|
checkout scm
|
|
|
|
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}"
|
|
|
|
echo "Git commit hash: ${GIT_COMMIT_HASH}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|