Class ParameterizedBuildSelector

All Implemented Interfaces:
ExtensionPoint, Describable<BuildSelector>

public class ParameterizedBuildSelector extends BuildSelector
Use a parameter to specify how the build is selected.
Author:
Alan Harder
See Also:
  • Field Details

  • Constructor Details

    • ParameterizedBuildSelector

      @DataBoundConstructor public ParameterizedBuildSelector(String parameterName)
  • Method Details

    • getParameterName

      public String getParameterName()
    • getBuild

      public Run<?,?> getBuild(Job<?,?> job, EnvVars env, BuildFilter filter, Run<?,?> parent)
      Description copied from class: BuildSelector
      Find a build to copy artifacts from.
      Overrides:
      getBuild in class BuildSelector
      Parameters:
      job - Source project
      env - Environment for build that is copying artifacts
      filter - Additional filter; returned result should return true (return null otherwise)
      parent - Build to which artifacts are being copied
      Returns:
      Build to use, or null if no appropriate build was found