We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bee88da + 87d57d5 commit add2a6dCopy full SHA for add2a6d
buildenv/jenkins/omrbuild.groovy
@@ -299,8 +299,8 @@ timestamps {
299
]
300
301
} else {
302
- checkout scm
303
- setBuildStatus("In Progress","PENDING","${env.GIT_COMMIT}")
+ scmVars = checkout scm
+ setBuildStatus("In Progress","PENDING","${scmVars.GIT_COMMIT}")
304
}
305
306
stage('Build') {
@@ -359,7 +359,7 @@ timestamps {
359
360
} finally {
361
if (!params.ghprbPullId) {
362
- setBuildStatus("Complete", currentBuild.currentResult, "${env.GIT_COMMIT}")
+ setBuildStatus("Complete", currentBuild.currentResult, "${scmVars.GIT_COMMIT}")
363
364
cleanWs()
365
0 commit comments