Package jenkins.plugins.git.traits
Class RemoteNameSCMSourceTrait
java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
jenkins.plugins.git.traits.RemoteNameSCMSourceTrait
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.trait.SCMSourceTrait>
public class RemoteNameSCMSourceTrait
extends jenkins.scm.api.trait.SCMSourceTrait
Exposes the remote name used for the fetch in a
AbstractGitSCMSource
as a SCMSourceTrait
.
When not provided in the AbstractGitSCMSource.getTraits()
the remote name should default to
AbstractGitSCMSource.DEFAULT_REMOTE_NAME
- Since:
- 3.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateBuilder
(jenkins.scm.api.trait.SCMBuilder<?, ?> builder) protected void
decorateContext
(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) Gets the remote name.Methods inherited from class jenkins.scm.api.trait.SCMSourceTrait
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
Methods inherited from class jenkins.scm.api.trait.SCMTrait
asSetList, asSetList, find
-
Constructor Details
-
RemoteNameSCMSourceTrait
Stapler constructor.- Parameters:
remoteName
- the remote name.
-
-
Method Details
-
getRemoteName
Gets the remote name.- Returns:
- the remote name.
-
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) - Overrides:
decorateContext
in classjenkins.scm.api.trait.SCMSourceTrait
-
decorateBuilder
protected void decorateBuilder(jenkins.scm.api.trait.SCMBuilder<?, ?> builder) - Overrides:
decorateBuilder
in classjenkins.scm.api.trait.SCMSourceTrait
-