Class MilestoneStep

  • All Implemented Interfaces:
    ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>

    public class MilestoneStep
    extends org.jenkinsci.plugins.workflow.steps.AbstractStepImpl
    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 Detail

      • MilestoneStep

        @DataBoundConstructor
        public MilestoneStep​(Integer ordinal)
    • Method Detail

      • 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()