Class MilestoneStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.pipeline.milestone.MilestoneStep
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class MilestoneStep
extends org.jenkinsci.plugins.workflow.steps.Step
This step can be used to grant:
- Builds pass through the step in order (taking the build number as sorter field)
- Older builds will not proceed (they are aborted) if a newer one already entered the milestone
- When a build passes a milestone, any older build that passed the previous milestone - but not this one - is aborted.
- Once a build passes the milestone, it will be never aborted by a newer build that didn't pass the milestone yet.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
MilestoneStep
-
-
Method Details
-
setLabel
-
setUnsafe
@DataBoundSetter public void setUnsafe(boolean unsafe) -
getLabel
-
getOrdinal
-
isUnsafe
public boolean isUnsafe() -
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-