Package net.gleske.scmfilter.impl.trait
Class WildcardSCMHeadFilterTrait
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.WildcardSCMHeadFilterTrait
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.trait.SCMSourceTrait>
public class WildcardSCMHeadFilterTrait
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.1
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionWildcardSCMHeadFilterTrait
(String includes, String excludes) Deprecated.WildcardSCMHeadFilterTrait
(String includes, String excludes, String tagIncludes, String tagExcludes) Stapler constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) Returns the branch exclude rules.Returns the branch include rules.Returns the tag exclude rules.Returns the tag include rules.Methods inherited from class jenkins.scm.api.trait.SCMSourceTrait
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
Methods inherited from class jenkins.scm.api.trait.SCMTrait
asSetList, asSetList, find
-
Constructor Details
-
WildcardSCMHeadFilterTrait
@DataBoundConstructor public WildcardSCMHeadFilterTrait(@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.
-
WildcardSCMHeadFilterTrait
Deprecated.Deprecated constructor kept around for compatibility and migration.- Parameters:
includes
- the include rules.excludes
- the exclude rules.
-
-
Method Details
-
getIncludes
Returns the branch include rules.- Returns:
- the branch include rules.
-
getExcludes
Returns the branch exclude rules.- Returns:
- the branch exclude rules.
-
getTagIncludes
Returns the tag include rules.- Returns:
- the tag include rules.
-
getTagExcludes
Returns the tag exclude rules.- Returns:
- the tag exclude rules.
-
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) - Overrides:
decorateContext
in classjenkins.scm.api.trait.SCMSourceTrait
-