-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Critical
-
Component/s: pipeline-stage-step-plugin, pipeline-stage-view-plugin
-
None
-
Environment:Jenkins ver. 2.222.3
Pipeline Stage Step 2.3
Pipeline Stage View Plugin 2.13
Hello. I am trying to mark stage as failed, but without printing "ERROR:".
I've tried this code:
import org.jenkinsci.plugins.pipeline.modeldefinition.Utils stage('I am skipped') { Â Â echo "before" Â Â Utils.markStageSkippedForConditional(STAGE_NAME) Â Â echo "after" }
But still stage is marked as success.
I've tried these 4:
Utils.markStageFailedAndContinued - marked as success
Utils.markStageSkippedForFailure - marked as success
Utils.markStageSkippedForUnstable - marked as success
Utils.markStageSkippedForConditional - marked as skipped
Â
Looks like Utils.markStageSkippedForConditional works but the rest of them doesn't.
Â
Any help would be appreciated.
Â
Â