Class ParametersRunFilter

All Implemented Interfaces:
ExtensionPoint, Describable<RunFilter>

public class ParametersRunFilter extends RunFilter
Filter to find builds matching particular parameters.
Author:
Alan Harder
  • Constructor Details

    • ParametersRunFilter

      @DataBoundConstructor public ParametersRunFilter(String paramsToMatch)
      Parameters:
      paramsToMatch - comma-separated list of pairs of parameters and values to match
  • Method Details

    • getParamsToMatch

      public String getParamsToMatch()
      Returns:
      comma-separated list of pairs of parameters and values to match
    • 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.
    • getDisplayName

      public String getDisplayName()
      Description copied from class: RunFilter
      Returns the display name for this filters. You can override this to output configurations of this filters in verbose logs.
      Overrides:
      getDisplayName in class RunFilter
      Returns:
      the display name for this filters.