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.SCMSourceRequestTheSCMSourceRequestbase 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 StringgitTool()Returns the name of theGitToolto use ornullto use the default.List<org.eclipse.jgit.transport.RefSpec>refSpecs()Returns the list ofRefSpecinstances to use.StringremoteName()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 theGitToolto use ornullto use the default.- Returns:
- the name of the
GitToolto use ornullto 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 ofRefSpecinstances to use.- Returns:
- the list of
RefSpecinstances to use.
-
-