-
Bug
-
Resolution: Unresolved
-
Major
-
None
Some time back, declarative pipelines were marking a stage as unstable, and I was able to have something like:
pipeline { stage { steps { sh 'runuittests' } post { always { junit 'junit.xml' } } } stage { when { expression { currentBuild.resultIsBetterOrEqualTo('SUCCESS') } } steps { // Only runs when tests are stable } } }
However, this stopped working at some point in the recent past.
currentBuild.result does not seem to be populated when junit marks the build unstable.
- is duplicated by
-
JENKINS-48267 JUnit failures do not trigger unstable post steps
-
- Resolved
-
- links to
[JENKINS-48178] Unstable build from junit not picked up in currentBuild.result
Assignee | New: Andrew Bayer [ abayer ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "junit PR #91 (Web Link)" [ 18137 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Component/s | New: junit-plugin [ 15499 ] | |
Component/s | Original: workflow-cps-plugin [ 21713 ] |
Link |
New:
This issue is duplicated by |
Resolution | Original: Fixed [ 1 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
Assignee | Original: Andrew Bayer [ abayer ] |