Interface MilestoneStorage
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
DefaultMilestoneStorage
Manages persistence of active milestones and cancellation of older builds as needed.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault void
Cancels the given run due to another run passing a milestone.Clears 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.
-
Field Details
-
LOGGER
-
-
Method Details
-
store
Records passing a milestone.- 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
Clears aRun
from recorded milestones.- Parameters:
run
- The completed run.- Returns:
- The result from clearing the run.
-
onDeletedJob
Called when a job gets deleted, allowing the implementation to perform required cleanup.- Parameters:
job
- The job that was deleted.
-
cancel
Cancels the given run due to another run passing a milestone.- Parameters:
job
- the job for which the run is getting cancelledbuildNumber
- the build number of the run to cancelexternalizableId
- the externalizable id for the run causing the cancellation.
-