com.sonyericsson.jenkins.plugins.bfa.model.dbf
Class DownstreamBuildFinder
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.dbf.DownstreamBuildFinder
- All Implemented Interfaces:
- hudson.ExtensionPoint
- Direct Known Subclasses:
- BuildFlowDBF, CoreDBF, ParameterizedTriggerDBF
public abstract class DownstreamBuildFinder
- extends Object
- implements hudson.ExtensionPoint
There is no general way to find downstream build in Jenkins Core. Different
plugin have there own way of keeping this information.
Extend this class and implement
getDownstreamBuilds(hudson.model.AbstractBuild)
in a way suitable for the plugin
- Author:
- Jan-Olof Sivtoft
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary |
protected static List<hudson.model.AbstractBuild<?,?>> |
EMPTY
No need to create a new empty list each time there is nothing to return. |
Method Summary |
static hudson.ExtensionList<DownstreamBuildFinder> |
getAll()
Return a list of all registered DownstreamBuildFinder of this type. |
abstract List<hudson.model.AbstractBuild<?,?>> |
getDownstreamBuilds(hudson.model.AbstractBuild build)
Return a list of all downstream builds originating from provided build. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
protected static final List<hudson.model.AbstractBuild<?,?>> EMPTY
- No need to create a new empty list each time there is nothing to return.
Make it unmodifiable to make sure it isn't used.
DownstreamBuildFinder
public DownstreamBuildFinder()
getDownstreamBuilds
public abstract List<hudson.model.AbstractBuild<?,?>> getDownstreamBuilds(hudson.model.AbstractBuild build)
- Return a list of all downstream builds originating from provided build.
- Parameters:
build
- get the downstream build(s) relative this build
- Returns:
- a list with downstream builds
getAll
public static hudson.ExtensionList<DownstreamBuildFinder> getAll()
- Return a list of all registered DownstreamBuildFinder of this type.
- Returns:
- a list of DownstreamBuildFinder
Copyright © 2004-2014. All Rights Reserved.