@Extension @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class GlobalBuildDiscarderListener extends RunListener<Run>
ExtensionPoint.LegacyInstancesAreScopedToHudson
LISTENERS, targetType
Constructor and Description |
---|
GlobalBuildDiscarderListener() |
Modifier and Type | Method and Description |
---|---|
void |
onFinalized(Run run)
Called after a build is moved to the
Run.State.COMPLETED state. |
all, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onCompleted, onDeleted, onInitialize, onStarted, register, setUpEnvironment, unregister
public void onFinalized(Run run)
RunListener
Run.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 than RunListener.onCompleted(Run, TaskListener)
.
onFinalized
in class RunListener<Run>
Copyright © 2004–2022. All rights reserved.