-
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