Skip to content

Commit

Permalink
Set build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed Jul 20, 2020
1 parent 3ac42c8 commit cff336a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vars/githubPr.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def sendCommentOnError(Closure closure) {
try {
closure()
} catch (ex) {
// If this is the first failed step, it's likely that the error hasn't propagated up far enough to mark the build as a failure
currentBuild.result = 'FAILURE'
catchErrors {
sendComment(false)
}
Expand Down

0 comments on commit cff336a

Please sign in to comment.