Class MilestoneStepExecution
java.lang.Object
org.jenkinsci.plugins.workflow.steps.StepExecution
org.jenkinsci.plugins.workflow.steps.SynchronousStepExecution<Void>
org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution
- All Implemented Interfaces:
Serializable
public class MilestoneStepExecution
extends org.jenkinsci.plugins.workflow.steps.SynchronousStepExecution<Void>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Listens to pipeline resume, and letMilestoneStorage
know the latest persisted milestone.static final class
static final class
-
Constructor Summary
ConstructorsConstructorDescriptionMilestoneStepExecution
(org.jenkinsci.plugins.workflow.steps.StepContext context, String label, Integer ordinal, boolean unsafe) -
Method Summary
Methods inherited from class org.jenkinsci.plugins.workflow.steps.SynchronousStepExecution
start, stop
Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepExecution
acceptAll, acceptAll, applyAll, applyAll, blocksRestart, getContext, getStatus, getStatusBounded, onResume
-
Constructor Details
-
MilestoneStepExecution
-
-
Method Details
-
getBuildsToCancel
public static Map<Integer,Integer> getBuildsToCancel(int buildNumber, @CheckForNull Integer ordinal, @NonNull Map<Integer, Integer> milestones) - Parameters:
buildNumber
- The build number currently querying for builds to cancelordinal
- The ordinal the build just passed.null
means it just started.milestones
- A map keyed by build numbers recording their current milestone.- Returns:
- A subset of build numbers among the given milestones eligible for cancellation.
-
run
-