Class SkippedStageReason
- java.lang.Object
-
- org.jenkinsci.plugins.pipeline.modeldefinition.model.SkippedStageReason
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SkippedStageReason.Failure
,SkippedStageReason.Restart
,SkippedStageReason.Unstable
,SkippedStageReason.When
public abstract class SkippedStageReason extends Object implements Serializable
Used to mark why a stage was skipped for internal purposes, allowing us to abstract away handling of skipped stages without needing chains of if/else or cases to get the different behaviors.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SkippedStageReason.Failure
static class
SkippedStageReason.Restart
static class
SkippedStageReason.Unstable
static class
SkippedStageReason.When
-
Constructor Summary
Constructors Constructor Description SkippedStageReason(String stageName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SkippedStageReason
cloneWithNewStage(String newStage)
abstract String
getMessage()
String
getStageName()
abstract String
getStageStatus()
boolean
isNotExecutedNode()
-
-
-
Field Detail
-
stageName
protected String stageName
-
-
Constructor Detail
-
SkippedStageReason
public SkippedStageReason(@NonNull String stageName)
-
-
Method Detail
-
isNotExecutedNode
public boolean isNotExecutedNode()
-
getMessage
@NonNull public abstract String getMessage()
-
getStageStatus
@NonNull public abstract String getStageStatus()
-
cloneWithNewStage
@NonNull public abstract SkippedStageReason cloneWithNewStage(@NonNull String newStage)
-
getStageName
@NonNull public String getStageName()
-
-