Skip to content

Commit d08ce14

Browse files
committed
jobs/bodhi-trigger: report SUCCESS even for UNSTABLE builds
When a snoozed test expires, if it has the `warn: true` key on, we'll start warning and that'll show up as an UNSTABLE build. These warnings are more for test maintainers than for public consumption so don't translate them to NEEDS_INSPECTION because that will block updates on gated components.
1 parent 71e9023 commit d08ce14

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jobs/bodhi-trigger.Jenkinsfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,11 @@ cosaPod(cpu: "0.1", kvm: false) {
168168

169169
stage("Report Completion") {
170170
def outcome
171-
if (test.result == 'SUCCESS') {
171+
// treat UNSTABLE as PASSED too; we often have expired snoozed tests
172+
// that'll warn and Greenwave/Bodhi treats NEEDS_INSPECTION outcomes
173+
// as blocking
174+
if (test.result == 'SUCCESS' || test.result == 'UNSTABLE') {
172175
outcome = 'PASSED'
173-
} else if (test.result == 'UNSTABLE') {
174-
outcome = 'NEEDS_INSPECTION'
175176
} else {
176177
outcome = 'FAILED'
177178
}

0 commit comments

Comments
 (0)