Class SCMHeadPrefilter

java.lang.Object
jenkins.scm.api.trait.SCMHeadPrefilter

public abstract class SCMHeadPrefilter extends Object
A SCMSourceRequest independent filter of SCMHead instances. These filters may not make remote requests in order to determine exclusion. If multiple filters are used, if any exclude then the head is excluded. The SCMHeadPrefilter instances are applied before SCMHeadFilter instances in order to minimize remote requests.
Since:
3.4.0
See Also:
  • Constructor Details

    • SCMHeadPrefilter

      public SCMHeadPrefilter()
  • Method Details

    • isExcluded

      public abstract boolean isExcluded(@NonNull SCMSource source, @NonNull SCMHead head)
      Checks if the supplied SCMHead is excluded from the specified SCMSource.
      Parameters:
      source - the SCMSource.
      head - the SCMHead.
      Returns:
      true if and only if the SCMHead is excluded from the request.