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.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.pipeline.milestone.MilestoneStorage
MilestoneStorage.ClearResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClears aRun
from recorded milestones.void
onDeletedJob
(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, wait
Methods inherited from interface org.jenkinsci.plugins.pipeline.milestone.MilestoneStorage
cancel
-
Constructor Details
-
DefaultMilestoneStorage
public DefaultMilestoneStorage()
-
-
Method Details
-
store
Description copied from interface:MilestoneStorage
Records passing a milestone.- Specified by:
store
in interfaceMilestoneStorage
- Parameters:
run
- The run passing the milestone.ordinal
- the ordinal of the milestone gettting passed. May benull
to record build starting.- Returns:
- The list of milestones for the job after storing the new one.
-
clear
Description copied from interface:MilestoneStorage
Clears aRun
from recorded milestones.- Specified by:
clear
in interfaceMilestoneStorage
- Parameters:
run
- The completed run.- Returns:
- The result from clearing the run.
-
onDeletedJob
Description copied from interface:MilestoneStorage
Called when a job gets deleted, allowing the implementation to perform required cleanup.- Specified by:
onDeletedJob
in interfaceMilestoneStorage
- Parameters:
job
- The job that was deleted.
-