public class RefSpecsSCMSourceTrait extends jenkins.scm.api.trait.SCMSourceTrait
AbstractGitSCMSource as a SCMSourceTrait.
The ref specs are stored as templates which are intended to be realised by applying
String.replaceAll(String, String) with the AbstractGitSCMSource.REF_SPEC_REMOTE_NAME_PLACEHOLDER
pattern to inject the remote name (which should default to AbstractGitSCMSource.DEFAULT_REMOTE_NAME| Modifier and Type | Class and Description |
|---|---|
static class |
RefSpecsSCMSourceTrait.DescriptorImpl
Our
Descriptor |
static class |
RefSpecsSCMSourceTrait.RefSpecTemplate
Represents a single wrapped template for easier form binding.
|
| Constructor and Description |
|---|
RefSpecsSCMSourceTrait(List<RefSpecsSCMSourceTrait.RefSpecTemplate> templates)
Stapler constructor.
|
RefSpecsSCMSourceTrait(String... templates)
Utility constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
asStrings()
Unwraps the templates.
|
protected void |
decorateBuilder(jenkins.scm.api.trait.SCMBuilder<?,?> builder) |
protected void |
decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context) |
List<RefSpecsSCMSourceTrait.RefSpecTemplate> |
getTemplates()
Gets the templates.
|
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateObserver, getDescriptor, includeCategory, isCategoryEnabledasSetList, asSetList, find@DataBoundConstructor
public RefSpecsSCMSourceTrait(@CheckForNull
List<RefSpecsSCMSourceTrait.RefSpecTemplate> templates)
templates - the templates.public RefSpecsSCMSourceTrait(String... templates)
templates - the template strings.@NonNull public List<RefSpecsSCMSourceTrait.RefSpecTemplate> getTemplates()
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
decorateContext in class jenkins.scm.api.trait.SCMSourceTraitprotected void decorateBuilder(jenkins.scm.api.trait.SCMBuilder<?,?> builder)
decorateBuilder in class jenkins.scm.api.trait.SCMSourceTraitCopyright © 2007–2021. All rights reserved.