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 - the GitSCMExtension 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 a GitSCMExtension as a SCMSourceTrait.
Since:
3.4.0
  • Constructor Details

    • GitSCMExtensionTrait

      public GitSCMExtensionTrait(@NonNull E extension)
      Constructor.
      Parameters:
      extension - the extension.
  • Method Details

    • getExtension

      @NonNull public E getExtension()
      Gets the extension.
      Returns:
      the extension.
    • decorateBuilder

      protected void decorateBuilder(jenkins.scm.api.trait.SCMBuilder<?,?> builder)
      Overrides:
      decorateBuilder in class jenkins.scm.api.trait.SCMSourceTrait