Skip to content

Commit

Permalink
[CI] Always set checkoutInfo after git checkout (elastic#99265)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders authored May 4, 2021
1 parent 92da105 commit 6dab2f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vars/workers.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ def base(Map params, Closure closure) {
dir("kibana") {
checkoutInfo = getCheckoutInfo()

// use `checkoutInfo` as a flag to indicate that we've already reported the pending commit status
if (buildState.get('shouldSetCommitStatus') && !buildState.has('checkoutInfo')) {
if (!buildState.has('checkoutInfo')) {
buildState.set('checkoutInfo', checkoutInfo)
githubCommitStatus.onStart()

if (buildState.get('shouldSetCommitStatus')) {
githubCommitStatus.onStart()
}
}
}

Expand Down

0 comments on commit 6dab2f1

Please sign in to comment.