Class DownstreamBuildFinder

java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.dbf.DownstreamBuildFinder
All Implemented Interfaces:
ExtensionPoint
Direct Known Subclasses:
BuildCacheDBF, CoreDBF, ParameterizedTriggerDBF

public abstract class DownstreamBuildFinder extends Object implements 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.Run) in a way suitable for the plugin
Author:
Jan-Olof Sivtoft
  • Field Details

    • EMPTY

      protected static final List<Run<?,?>> 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 public List<Run<?,?>> getDownstreamBuilds(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
    • getDownstreamBuilds

      public List<Run<?,?>> getDownstreamBuilds(Run 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 ExtensionList<DownstreamBuildFinder> getAll()
      Return a list of all registered DownstreamBuildFinder of this type.
      Returns:
      a list of DownstreamBuildFinder