Class GitSCMSourceRequest

java.lang.Object
jenkins.scm.api.trait.SCMSourceRequest
jenkins.plugins.git.GitSCMSourceRequest
All Implemented Interfaces:
Closeable, AutoCloseable

public class GitSCMSourceRequest extends jenkins.scm.api.trait.SCMSourceRequest
The SCMSourceRequest base class for AbstractGitSCMSource.
Since:
3.4.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class jenkins.scm.api.trait.SCMSourceRequest

    jenkins.scm.api.trait.SCMSourceRequest.IntermediateLambda<I extends Object>, jenkins.scm.api.trait.SCMSourceRequest.LazyRevisionLambda<H extends jenkins.scm.api.SCMHead,R extends jenkins.scm.api.SCMRevision,I extends Object>, jenkins.scm.api.trait.SCMSourceRequest.ProbeLambda<H extends jenkins.scm.api.SCMHead,I extends Object>, jenkins.scm.api.trait.SCMSourceRequest.RevisionLambda<H extends jenkins.scm.api.SCMHead,R extends jenkins.scm.api.SCMRevision>, jenkins.scm.api.trait.SCMSourceRequest.Witness<H extends jenkins.scm.api.SCMHead,R extends jenkins.scm.api.SCMRevision>
  • Constructor Summary

    Constructors
    Constructor
    Description
    GitSCMSourceRequest(jenkins.scm.api.SCMSource source, GitSCMSourceContext<?,?> context, TaskListener listener)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    final String
    Returns the name of the GitTool to use or null to use the default.
    final List<org.eclipse.jgit.transport.RefSpec>
    Returns the list of RefSpec instances to use.
    final String
    Returns the name to give the remote.

    Methods inherited from class jenkins.scm.api.trait.SCMSourceRequest

    close, getCriteria, isComplete, isExcluded, isTrusted, listener, manage, process, process, process

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GitSCMSourceRequest

      public GitSCMSourceRequest(@NonNull jenkins.scm.api.SCMSource source, @NonNull GitSCMSourceContext<?,?> context, TaskListener listener)
      Constructor.
      Parameters:
      source - the source.
      context - the context.
      listener - the (optional) TaskListener.
  • Method Details

    • gitTool

      @CheckForNull public final String gitTool()
      Returns the name of the GitTool to use or null to use the default.
      Returns:
      the name of the GitTool to use or null to use the default.
    • remoteName

      @NonNull public final String remoteName()
      Returns the name to give the remote.
      Returns:
      the name to give the remote.
    • refSpecs

      @NonNull public final List<org.eclipse.jgit.transport.RefSpec> refSpecs()
      Returns the list of RefSpec instances to use.
      Returns:
      the list of RefSpec instances to use.