@Extension public class BuildListener extends RunListener<Run>
ExtensionPoint.LegacyInstancesAreScopedToHudsonLISTENERS, 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, unregisterpublic 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, 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–2019. All rights reserved.