-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: junit-plugin
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