Class DownstreamRunFilter

All Implemented Interfaces:
ExtensionPoint, Describable<RunFilter>

public class DownstreamRunFilter extends RunFilter
Select a build which is a downstream of a specified build.
  • Constructor Details

    • DownstreamRunFilter

      @DataBoundConstructor public DownstreamRunFilter(@CheckForNull String upstreamProjectName, @CheckForNull String upstreamBuildNumber)
      Constructor.
      Parameters:
      upstreamProjectName - Upstream project name.
      upstreamBuildNumber - Upstream build number.
  • Method Details

    • getUpstreamProjectName

      @NonNull public String getUpstreamProjectName()
      Returns:
      upstream project name. May include variable expression.
    • getUpstreamBuildNumber

      @NonNull public String getUpstreamBuildNumber()
      Returns:
      upstream build number. May include variable expression.
    • isSelectable

      public boolean isSelectable(@NonNull Run<?,?> run, @NonNull RunSelectorContext context)
      Overrides:
      isSelectable in class RunFilter
      Parameters:
      run - the build to check
      context - the context of current runselector execution.
      Returns:
      whether this build can be selected.