Skip to content

Commit

Permalink
Set job to "unstable" if skipping entire (non-empty) queue
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Nov 20, 2024
1 parent 7e8e42b commit c24c8cd
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 c24c8cd

Please sign in to comment.