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:
  1. Builds pass through the step in order (taking the build number as sorter field)
  2. Older builds will not proceed (they are aborted) if a newer one already entered the milestone
  3. When a build passes a milestone, any older build that passed the previous milestone - but not this one - is aborted.
  4. Once a build passes the milestone, it will be never aborted by a newer build that didn't pass the milestone yet.
  • Constructor Details

    • MilestoneStep

      @DataBoundConstructor public MilestoneStep(@CheckForNull Integer ordinal)
  • Method Details

    • setLabel

      @DataBoundSetter public void setLabel(String label)
    • setUnsafe

      @DataBoundSetter public void setUnsafe(boolean unsafe)
    • getLabel

      @CheckForNull public String getLabel()
    • getOrdinal

      @CheckForNull public Integer 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 class org.jenkinsci.plugins.workflow.steps.Step
      Throws:
      Exception