Package jenkins.model
Class GlobalBuildDiscarderListener
- java.lang.Object
-
- hudson.model.listeners.RunListener<Run>
-
- jenkins.model.GlobalBuildDiscarderListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class GlobalBuildDiscarderListener extends RunListener<Run>
Run background build discarders on an individual job once a build is finalized
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.listeners.RunListener
LISTENERS, targetType
-
-
Constructor Summary
Constructors Constructor Description GlobalBuildDiscarderListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onFinalized(Run run)
Called after a build is moved to theRun.State.COMPLETED
state.-
Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onCompleted, onDeleted, onInitialize, onStarted, register, setUpEnvironment, unregister
-
-
-
-
Method Detail
-
onFinalized
public void onFinalized(Run run)
Description copied from class:RunListener
Called after a build is moved to theRun.State.COMPLETED
state.At this point, all the records related to a build is written down to the disk. As such,
TaskListener
is no longer available. This happens later thanRunListener.onCompleted(Run, TaskListener)
.- Overrides:
onFinalized
in classRunListener<Run>
-
-