Package jenkins.plugins.git
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
TheSCMSourceRequest
base class forAbstractGitSCMSource
.- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
gitTool()
Returns the name of theGitTool
to use ornull
to use the default.List<org.eclipse.jgit.transport.RefSpec>
refSpecs()
Returns the list ofRefSpec
instances to use.String
remoteName()
Returns the name to give the remote.
-
-
-
Constructor Detail
-
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 Detail
-
gitTool
@CheckForNull public final String gitTool()
Returns the name of theGitTool
to use ornull
to use the default.- Returns:
- the name of the
GitTool
to use ornull
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 ofRefSpec
instances to use.- Returns:
- the list of
RefSpec
instances to use.
-
-