public abstract class MatrixBuildListener extends Object implements hudson.ExtensionPoint
MatrixRuns to rebuild.
Plugins can implement this extension point to filter out the subset of matrix project to build.
Most typically, such a plugin would add a custom Action to a build when it goes to the queue
(Queue.schedule2(Task, int, List), then access this from MatrixBuild to drive
the filtering logic.
See the matrix reloaded plugin for an example.
| Constructor and Description |
|---|
MatrixBuildListener() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.ExtensionList<MatrixBuildListener> |
all()
Returns all the registered
MatrixBuildListener descriptors. |
static boolean |
buildConfiguration(MatrixBuild b,
MatrixConfiguration c) |
abstract boolean |
doBuildConfiguration(MatrixBuild b,
MatrixConfiguration c)
Determine whether to build a given configuration or not
|
public abstract boolean doBuildConfiguration(MatrixBuild b, MatrixConfiguration c)
b - Never null. The umbrella build.c - The configuration whose build is being considered. If any of the MatrixBuildListener
returns false, then the build for this configuration is skipped, and the previous build
of this configuration will be taken as the default result.public static boolean buildConfiguration(MatrixBuild b, MatrixConfiguration c)
@Nonnull public static hudson.ExtensionList<MatrixBuildListener> all()
MatrixBuildListener descriptors.Copyright © 2004-2016. All Rights Reserved.