Package jenkins.scm.impl.trait
Class WildcardSCMHeadFilterTrait
java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
jenkins.scm.impl.trait.WildcardSCMHeadFilterTrait
- All Implemented Interfaces:
ExtensionPoint
,Describable<SCMSourceTrait>
Decorates a
SCMSource
with a SCMHeadPrefilter
that filters SCMHead
instances based on
matching wildcard include/exclude rules.- Since:
- 2.2.0
-
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) Stapler constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(SCMSourceContext<?, ?> context) SPI: Override this method to decorate aSCMSourceContext
.Returns the exclude rules.Returns the include rules.Methods inherited from class jenkins.scm.api.trait.SCMSourceTrait
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
-
Constructor Details
-
Method Details
-
getIncludes
Returns the include rules.- Returns:
- the include rules.
-
getExcludes
Returns the exclude rules.- Returns:
- the exclude rules.
-
decorateContext
SPI: Override this method to decorate aSCMSourceContext
. You can assume that yourSCMSourceTraitDescriptor.isApplicableToContext(Class)
istrue
within this method and that the provided context is an instance ofSCMSourceTraitDescriptor.getContextClass()
.- Overrides:
decorateContext
in classSCMSourceTrait
- Parameters:
context
- the context (invariant:SCMSourceTraitDescriptor.isApplicableToContext(Class)
istrue
andSCMSourceTraitDescriptor.getContextClass()
Class.isInstance(Object)
) istrue
)
-