Class DefaultMilestoneStorage
java.lang.Object
org.jenkinsci.plugins.pipeline.milestone.DefaultMilestoneStorage
- All Implemented Interfaces:
ExtensionPoint,MilestoneStorage
@Extension(ordinal=-1.0)
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class DefaultMilestoneStorage
extends Object
implements MilestoneStorage
The default implementation storing milestones in memory.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface org.jenkinsci.plugins.pipeline.milestone.MilestoneStorage
MilestoneStorage.ClearResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClears aRunfrom recorded milestones.voidonDeletedJob(Job<?, ?> job) Called when a job gets deleted, allowing the implementation to perform required cleanup.Records passing a milestone.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jenkinsci.plugins.pipeline.milestone.MilestoneStorage
cancel
-
Constructor Details
-
DefaultMilestoneStorage
public DefaultMilestoneStorage()
-
-
Method Details
-
store
Description copied from interface:MilestoneStorageRecords passing a milestone.- Specified by:
storein interfaceMilestoneStorage- Parameters:
run- The run passing the milestone.ordinal- the ordinal of the milestone gettting passed. May benullto record build starting.- Returns:
- The list of milestones for the job after storing the new one.
-
clear
Description copied from interface:MilestoneStorageClears aRunfrom recorded milestones.- Specified by:
clearin interfaceMilestoneStorage- Parameters:
run- The completed run.- Returns:
- The result from clearing the run.
-
onDeletedJob
Description copied from interface:MilestoneStorageCalled when a job gets deleted, allowing the implementation to perform required cleanup.- Specified by:
onDeletedJobin interfaceMilestoneStorage- Parameters:
job- The job that was deleted.
-