Package jenkins.plugins.git.traits
Class GitSCMExtensionTrait<E extends GitSCMExtension>
- 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.GitSCMExtensionTrait<E>
-
- Type Parameters:
E
- theGitSCMExtension
that is being exposed
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.trait.SCMSourceTrait>
- Direct Known Subclasses:
AuthorInChangelogTrait
,CheckoutOptionTrait
,CleanAfterCheckoutTrait
,CleanBeforeCheckoutTrait
,CloneOptionTrait
,FirstBuildChangelogTrait
,GitLFSPullTrait
,LocalBranchTrait
,PruneStaleBranchTrait
,PruneStaleTagTrait
,SparseCheckoutPathsTrait
,SubmoduleOptionTrait
,UserIdentityTrait
,WipeWorkspaceTrait
public abstract class GitSCMExtensionTrait<E extends GitSCMExtension> extends jenkins.scm.api.trait.SCMSourceTrait
Base class for exposing aGitSCMExtension
as aSCMSourceTrait
.- Since:
- 3.4.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description GitSCMExtensionTrait(E extension)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
decorateBuilder(jenkins.scm.api.trait.SCMBuilder<?,?> builder)
E
getExtension()
Gets the extension.
-
-
-
Constructor Detail
-
GitSCMExtensionTrait
public GitSCMExtensionTrait(@NonNull E extension)
Constructor.- Parameters:
extension
- the extension.
-
-
Method Detail
-
getExtension
@NonNull public E getExtension()
Gets the extension.- Returns:
- the extension.
-
decorateBuilder
protected void decorateBuilder(jenkins.scm.api.trait.SCMBuilder<?,?> builder)
- Overrides:
decorateBuilder
in classjenkins.scm.api.trait.SCMSourceTrait
-
-