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
FieldsModifier and TypeFieldDescriptionprotected final MatrixBuildThe build in progress.protected final Launcherprotected final BuildListenerThe listener to send the output to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMatrixAggregator(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:
InterruptedExceptionIOException- See Also:
-
endRun
Called whenever one run is completed.- Parameters:
run- The completedMatrixRunobject. Always non-null.- Returns:
- See
startBuild()for the return value semantics. - Throws:
InterruptedExceptionIOException
-
endBuild
Called after all theMatrixRuns have been completed to indicate that the build is about to finish.- Returns:
- See
startBuild()for the return value semantics. - Throws:
InterruptedExceptionIOException
-