Class DownstreamBuildFinder
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.dbf.DownstreamBuildFinder
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
BuildCacheDBF
,CoreDBF
,ParameterizedTriggerDBF
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.Run)
in a way suitable for the plugin- Author:
- Jan-Olof Sivtoft
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<DownstreamBuildFinder>
getAll()
Return a list of all registered DownstreamBuildFinder of this type.getDownstreamBuilds
(AbstractBuild build) Deprecated.getDownstreamBuilds
(Run build) Return a list of all downstream builds originating from provided build.
-
Field Details
-
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.
-
-
Constructor Details
-
DownstreamBuildFinder
public DownstreamBuildFinder()
-
-
Method Details
-
getDownstreamBuilds
Deprecated.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
-
getDownstreamBuilds
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
Return a list of all registered DownstreamBuildFinder of this type.- Returns:
- a list of DownstreamBuildFinder
-
getDownstreamBuilds(hudson.model.Run)