Class WildcardSCMOriginFilterTrait

java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
net.gleske.scmfilter.impl.trait.WildcardSCMOriginFilterTrait
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.trait.SCMSourceTrait>

public class WildcardSCMOriginFilterTrait extends jenkins.scm.api.trait.SCMSourceTrait
Decorates a SCMSource with a SCMHeadPrefilter that filters SCMHead instances based on matching wildcard include/exclude rules.
Since:
0.5
  • Constructor Details

    • WildcardSCMOriginFilterTrait

      @DataBoundConstructor public WildcardSCMOriginFilterTrait(@CheckForNull String includes, String excludes, String tagIncludes, String tagExcludes)
      Stapler constructor.
      Parameters:
      includes - the branch include rules.
      excludes - the branch exclude rules.
      tagIncludes - the tag include rules.
      tagExcludes - the tag exclude rules.
    • WildcardSCMOriginFilterTrait

      @Deprecated public WildcardSCMOriginFilterTrait(@CheckForNull String includes, String excludes)
      Deprecated.
      Deprecated constructor kept around for compatibility and migration.
      Parameters:
      includes - the include rules.
      excludes - the exclude rules.
  • Method Details

    • getIncludes

      public String getIncludes()
      Returns the branch include rules.
      Returns:
      the branch include rules.
    • getExcludes

      public String getExcludes()
      Returns the branch exclude rules.
      Returns:
      the branch exclude rules.
    • getTagIncludes

      public String getTagIncludes()
      Returns the tag include rules.
      Returns:
      the tag include rules.
    • getTagExcludes

      public String getTagExcludes()
      Returns the tag exclude rules.
      Returns:
      the tag exclude rules.
    • decorateContext

      protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
      Overrides:
      decorateContext in class jenkins.scm.api.trait.SCMSourceTrait