Skip to content

Commit

Permalink
Merge pull request #98 from infosiftr/unstable-skipping
Browse files Browse the repository at this point in the history
Set job to "unstable" if skipping entire (non-empty) queue
  • Loading branch information
yosifkit authored Nov 20, 2024
2 parents 6ad2e19 + c24c8cd commit d74ac85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jenkinsfile.trigger
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ node {
jobName += 'queue: 0'
breakEarly = true
}
if (skips > 0 ) {
if (skips > 0) {
jobName += ' skip: ' + skips
if (breakEarly) {
// if we're skipping some builds but the effective queue is empty, we want to set the job as "unstable" instead of successful (so we know there's still *something* that needs to build but it isn't being built right now)
currentBuild.result = 'UNSTABLE'
}
// queue to build might be empty, be we still need to record these skipped builds
breakEarly = false
}
Expand Down

0 comments on commit d74ac85

Please sign in to comment.