public abstract class MatrixAggregator extends Object implements hudson.ExtensionPoint
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
.
MatrixAggregatable
Modifier and Type | Field and Description |
---|---|
protected MatrixBuild |
build
The build in progress.
|
protected hudson.Launcher |
launcher |
protected hudson.model.BuildListener |
listener
The listener to send the output to.
|
Modifier | Constructor and Description |
---|---|
protected |
MatrixAggregator(MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
Modifier and Type | Method and Description |
---|---|
boolean |
endBuild()
Called after all the
MatrixRun s have been completed
to indicate that the build is about to finish. |
boolean |
endRun(MatrixRun run)
Called whenever one run is completed.
|
boolean |
startBuild()
Called before the build starts.
|
protected final MatrixBuild build
protected final hudson.Launcher launcher
protected final hudson.model.BuildListener listener
protected MatrixAggregator(MatrixBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
public boolean startBuild() throws InterruptedException, IOException
InterruptedException
IOException
BuildStep.prebuild(AbstractBuild,BuildListener)
public boolean endRun(MatrixRun run) throws InterruptedException, IOException
run
- The completed MatrixRun
object. Always non-null.startBuild()
for the return value semantics.InterruptedException
IOException
public boolean endBuild() throws InterruptedException, IOException
MatrixRun
s have been completed
to indicate that the build is about to finish.startBuild()
for the return value semantics.InterruptedException
IOException
Copyright © 2014. All rights reserved.