public class RegexSCMHeadFilterTrait
extends jenkins.scm.api.trait.SCMSourceTrait
SCMSource
with a SCMHeadPrefilter
that excludes SCMHead
instances with names that
do not match a user supplied regular expression.Modifier and Type | Class and Description |
---|---|
static class |
RegexSCMHeadFilterTrait.DescriptorImpl
Our descriptor.
|
Constructor and Description |
---|
RegexSCMHeadFilterTrait(String regex)
Stapler constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context) |
String |
getRegex()
Gets the regular expression.
|
@DataBoundConstructor public RegexSCMHeadFilterTrait(@NonNull String regex)
regex
- the regular expression.@NonNull public String getRegex()
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
decorateContext
in class jenkins.scm.api.trait.SCMSourceTrait
Copyright © 2016–2017. All rights reserved.