Class GitSCMSource

java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMSource>
jenkins.scm.api.SCMSource
jenkins.plugins.git.AbstractGitSCMSource
jenkins.plugins.git.GitSCMSource
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.SCMSource>

public class GitSCMSource extends AbstractGitSCMSource
A SCMSource that discovers branches in a git repository.
  • Field Details

    • LOGGER

      public static final Logger LOGGER
  • Constructor Details

  • Method Details

    • setCredentialsId

      @DataBoundSetter public void setCredentialsId(@CheckForNull String credentialsId)
    • setTraits

      @DataBoundSetter public void setTraits(List<jenkins.scm.api.trait.SCMSourceTrait> traits)
      Overrides:
      setTraits in class jenkins.scm.api.SCMSource
    • readResolve

      protected Object readResolve() throws ObjectStreamException
      Throws:
      ObjectStreamException
    • isIgnoreOnPushNotifications

      @Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("3.4.0") public boolean isIgnoreOnPushNotifications()
      Deprecated.
    • setBrowser

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @DataBoundSetter public void setBrowser(GitRepositoryBrowser browser)
    • setGitTool

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @DataBoundSetter public void setGitTool(String gitTool)
    • setExtensions

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @DataBoundSetter @Deprecated public void setExtensions(@CheckForNull List<GitSCMExtension> extensions)
      Deprecated.
    • getCredentialsId

      public String getCredentialsId()
      Specified by:
      getCredentialsId in class AbstractGitSCMSource
    • getRemote

      public String getRemote()
      Specified by:
      getRemote in class AbstractGitSCMSource
      Returns:
      Git remote URL
    • getRawRefSpecs

      @Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("3.4.0") public String getRawRefSpecs()
      Deprecated.
    • getRefSpecs

      @Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("3.4.0") protected List<org.eclipse.jgit.transport.RefSpec> getRefSpecs()
      Deprecated.
      Overrides:
      getRefSpecs in class AbstractGitSCMSource
      Returns:
      the ref specs.
    • getTraits

      @NonNull public List<jenkins.scm.api.trait.SCMSourceTrait> getTraits()
      Description copied from class: AbstractGitSCMSource
      Returns the SCMSourceTrait instances for this AbstractGitSCMSource.
      Overrides:
      getTraits in class AbstractGitSCMSource
      Returns:
      the SCMSourceTrait instances