Class ParameterizedRunSelector

java.lang.Object
hudson.model.AbstractDescribableImpl<RunSelector>
org.jenkinsci.plugins.runselector.RunSelector
org.jenkinsci.plugins.runselector.selectors.ParameterizedRunSelector
All Implemented Interfaces:
ExtensionPoint, Describable<RunSelector>

public class ParameterizedRunSelector extends RunSelector
Use a parameter to specify how the build is selected.
Author:
Alan Harder
See Also:
  • Constructor Details

    • ParameterizedRunSelector

      @DataBoundConstructor public ParameterizedRunSelector(String parameterName)
  • Method Details

    • getParameterName

      public String getParameterName()
    • select

      @CheckForNull public Run<?,?> select(@NonNull Job<?,?> job, @NonNull RunSelectorContext context) throws IOException, InterruptedException
      Overrides:
      select in class RunSelector
      Parameters:
      job - the job to pick a build from.
      context - context for the current execution of runselector.
      Returns:
      the build matches this selectors and conditions stored in the context.
      Throws:
      IOException - if an error occurs while performing the operation.
      InterruptedException - if any thread interrupts the current thread.