-
Improvement
-
Resolution: Fixed
-
Minor
-
None
There is already a TODO in the code:
// TODO: Once JENKINS-43995 lands, update this to set the step status instead of the entire build. // context.setResult(Result.UNSTABLE); run.setResult(Result.UNSTABLE);
Now with JENKINS-43995 done, this should be implemented via
context.get(FlowNode.class).addAction(new WarningAction(Result.UNSTABLE).withMessage(...)
or maybe even addOrReplaceAction() as in https://github.com/jenkinsci/workflow-basic-steps-plugin/blob/workflow-basic-steps-2.18/src/main/java/org/jenkinsci/plugins/workflow/steps/UnstableStep.java#L73
- depends on
-
JENKINS-43995 Individual Pipeline steps and stages/blocks should have Result statuses
- Resolved
- links to