@Extension(ordinal=11003.0) public class BuildFailureScanner extends RunListener<Run>
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static int |
ORDINAL
The ordinal of this extension, one thousand below the GerritTrigger plugin.
|
LISTENERS, targetType
Constructor and Description |
---|
BuildFailureScanner() |
Modifier and Type | Method and Description |
---|---|
static void |
initThreadPool()
Creates the shared thread pool after extensions have been made available.
|
void |
onCompleted(Run run,
TaskListener listener) |
void |
onFinalized(Run run) |
void |
onStarted(Run build,
TaskListener listener) |
static void |
scan(Run build,
PrintStream scanLog)
Performs a scan of the build, adds the
FailureCauseBuildAction and reports to the
StatisticsLogger . |
static void |
scanIfNotScanned(Run build,
PrintStream scanLog)
Scans the build if it should be scanned and it has not already been scanned.
|
all, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, onDeleted, onInitialize, register, setUpEnvironment, unregister
public static final int ORDINAL
@Initializer(after=EXTENSIONS_AUGMENTED) public static void initThreadPool()
public void onStarted(Run build, TaskListener listener)
onStarted
in class RunListener<Run>
public void onCompleted(Run run, @Nonnull TaskListener listener)
onCompleted
in class RunListener<Run>
public void onFinalized(Run run)
onFinalized
in class RunListener<Run>
public static void scanIfNotScanned(Run build, PrintStream scanLog)
StatisticsLogger
.build
- the build to scanscanLog
- log to write information topublic static void scan(Run build, PrintStream scanLog)
FailureCauseBuildAction
and reports to the
StatisticsLogger
.build
- the build to scanscanLog
- log to write information to.Copyright © 2016–2019. All rights reserved.