Skip to content

Commit add2a6d

Browse files
authored
Merge pull request #5031 from AdamBrousseau/fix_gh_status
Return SCM variables for Github statuses
2 parents bee88da + 87d57d5 commit add2a6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buildenv/jenkins/omrbuild.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ timestamps {
299299
]
300300
]
301301
} else {
302-
checkout scm
303-
setBuildStatus("In Progress","PENDING","${env.GIT_COMMIT}")
302+
scmVars = checkout scm
303+
setBuildStatus("In Progress","PENDING","${scmVars.GIT_COMMIT}")
304304
}
305305
}
306306
stage('Build') {
@@ -359,7 +359,7 @@ timestamps {
359359
}
360360
} finally {
361361
if (!params.ghprbPullId) {
362-
setBuildStatus("Complete", currentBuild.currentResult, "${env.GIT_COMMIT}")
362+
setBuildStatus("Complete", currentBuild.currentResult, "${scmVars.GIT_COMMIT}")
363363
}
364364
cleanWs()
365365
}

0 commit comments

Comments
 (0)