Interface MilestoneStorage
- All Superinterfaces:
- ExtensionPoint
- All Known Implementing Classes:
- DefaultMilestoneStorage
Manages persistence of active milestones and cancellation of older builds as needed.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidCancels the given run due to another run passing a milestone.Clears aRunfrom recorded milestones.voidonDeletedJob(Job<?, ?> job) Called when a job gets deleted, allowing the implementation to perform required cleanup.Records passing a milestone.
- 
Field Details- 
LOGGER
 
- 
- 
Method Details- 
storeRecords passing a milestone.- Parameters:
- run- The run passing the milestone.
- ordinal- the ordinal of the milestone gettting passed. May be- nullto record build starting.
- Returns:
- The list of milestones for the job after storing the new one.
 
- 
clearClears aRunfrom recorded milestones.- Parameters:
- run- The completed run.
- Returns:
- The result from clearing the run.
 
- 
onDeletedJobCalled when a job gets deleted, allowing the implementation to perform required cleanup.- Parameters:
- job- The job that was deleted.
 
- 
cancelCancels the given run due to another run passing a milestone.- Parameters:
- job- the job for which the run is getting cancelled
- buildNumber- the build number of the run to cancel
- externalizableId- the externalizable id for the run causing the cancellation.
 
 
-