Package org.jenkinsci.plugins.pipeline.milestone
package org.jenkinsci.plugins.pipeline.milestone
-
ClassDescriptionRecords that a build was canceled because it reached a milestone but a newer build already passed it, or a newer build from the last milestone the build passed.The default implementation storing milestones in memory.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.Listens to pipeline resume, and let
MilestoneStorageknow the latest persisted milestone.Manages persistence of active milestones and cancellation of older builds as needed.Result ofMilestoneStorage.clear(Run).