Class GitSCMSourceRequest

    • 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 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 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.