Package hudson.matrix
Class MatrixAggregator
java.lang.Object
hudson.matrix.MatrixAggregator
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
TestResultAggregator
Performs the aggregation of
MatrixRun
results
into MatrixBuild
.
MatrixAggregator
is a transitive stateful mutable object.
Unlike Publisher
, it is not persisted. Instead, a fresh
instance is created for each MatrixBuild
, and various
methods on this class are invoked in the event callback style
as the build progresses.
The end result of the aggregation should be
contributed as actions
.
- Since:
- 1.115
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionprotected final MatrixBuild
The build in progress.protected final Launcher
protected final BuildListener
The listener to send the output to. -
Constructor Summary
ModifierConstructorDescriptionprotected
MatrixAggregator
(MatrixBuild build, Launcher launcher, BuildListener listener) -
Method Summary
-
Field Details
-
build
The build in progress. Never null. -
launcher
-
listener
The listener to send the output to. Never null.
-
-
Constructor Details
-
MatrixAggregator
-
-
Method Details
-
startBuild
Called before the build starts.- Returns:
- true if the build can continue, false if there was an error and the build needs to be aborted.
- Throws:
InterruptedException
IOException
- See Also:
-
endRun
Called whenever one run is completed.- Parameters:
run
- The completedMatrixRun
object. Always non-null.- Returns:
- See
startBuild()
for the return value semantics. - Throws:
InterruptedException
IOException
-
endBuild
Called after all theMatrixRun
s have been completed to indicate that the build is about to finish.- Returns:
- See
startBuild()
for the return value semantics. - Throws:
InterruptedException
IOException
-