@Extension public class BuildListener extends RunListener<Run<?,?>>
ExtensionPoint.LegacyInstancesAreScopedToHudson
LISTENERS, targetType
Constructor and Description |
---|
BuildListener() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<BuildListener> |
getInstance()
Returns a registered
BuildListener instance. |
void |
onCompleted(Run<?,?> run,
TaskListener listener)
Fired when a build is completed, event logged via Log4j-audit.
|
void |
onStarted(Run<?,?> run,
TaskListener listener)
Fired when a build is started, event logged via Log4j-audit.
|
all, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onDeleted, onFinalized, onInitialize, register, setUpEnvironment, unregister
public void onStarted(Run<?,?> run, TaskListener listener)
onStarted
in class RunListener<Run<?,?>>
run
- of type Run having the build informationlistener
- of type TaskListener that the onStarted method expectspublic void onCompleted(Run<?,?> run, @NonNull TaskListener listener)
onCompleted
in class RunListener<Run<?,?>>
run
- of type Run having the build informationlistener
- of type TaskListener that the onCompleted method expectspublic static ExtensionList<BuildListener> getInstance()
BuildListener
instance.Copyright © 2016–2021. All rights reserved.