Package jenkins.model
Class 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onFinalized
(Run run) Called after a build is moved to theRun.State.COMPLETED
state.Methods inherited from class hudson.model.listeners.RunListener
all, allowLoad, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onCompleted, onDeleted, onInitialize, onStarted, register, setUpEnvironment, unregister
-
Constructor Details
-
GlobalBuildDiscarderListener
public GlobalBuildDiscarderListener()
-
-
Method Details
-
onFinalized
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>
-