Package jenkins.plugins.git
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>
A
SCMSource that discovers branches in a git repository.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class jenkins.plugins.git.AbstractGitSCMSource
AbstractGitSCMSource.SCMRevisionImpl, AbstractGitSCMSource.SpecificRevisionBuildChooserNested classes/interfaces inherited from class jenkins.scm.api.SCMSource
jenkins.scm.api.SCMSource.SourceByItemNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class jenkins.plugins.git.AbstractGitSCMSource
DEFAULT_REMOTE_NAME, REF_SPEC_DEFAULT, REF_SPEC_REMOTE_NAME_PLACEHOLDER, REF_SPEC_REMOTE_NAME_PLACEHOLDER_STRFields inherited from class jenkins.scm.api.SCMSource
PRONOUN -
Constructor Summary
ConstructorsConstructorDescriptionGitSCMSource(String remote) GitSCMSource(String id, String remote, String credentialsId, String includes, String excludes, boolean ignoreOnPushNotifications) Deprecated.GitSCMSource(String id, String remote, String credentialsId, String remoteName, String rawRefSpecs, String includes, String excludes, boolean ignoreOnPushNotifications) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.protected List<org.eclipse.jgit.transport.RefSpec>Deprecated.List<jenkins.scm.api.trait.SCMSourceTrait>Returns theSCMSourceTraitinstances for thisAbstractGitSCMSource.booleanDeprecated.protected ObjectvoidsetBrowser(GitRepositoryBrowser browser) voidsetCredentialsId(String credentialsId) voidsetExtensions(List<GitSCMExtension> extensions) Deprecated.voidsetGitTool(String gitTool) voidMethods inherited from class jenkins.plugins.git.AbstractGitSCMSource
build, decorate, getBrowser, getCacheDir, getCacheDir, getCacheEntry, getCacheLock, getCredentials, getExcludes, getExtensions, getGitTool, getIncludes, getRemoteConfigs, getRemoteName, isCategoryEnabled, isExcluded, isFIPSCompliantTLS, newBuilder, resolveGitTool, resolveGitTool, resolveGitTool, retrieve, retrieve, retrieve, retrieveActions, retrieveActions, retrieveRevisionsMethods inherited from class jenkins.scm.api.SCMSource
afterSave, build, canProbe, checkInterrupt, createProbe, defaultListener, equals, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchActions, fetchActions, fetchActions, fetchRevisions, fetchRevisions, fromSCMFileSystem, getCategories, getCriteria, getDescriptor, getId, getOwner, getPronoun, getTrustedRevision, hashCode, hasId, newProbe, parentHeads, parentRevisions, retrieve, retrieve, retrieve, retrieve, retrieve, retrieveActions, retrieveRevisions, setId, setOwner, toString, withId
-
Field Details
-
LOGGER
-
-
Constructor Details
-
GitSCMSource
-
GitSCMSource
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("3.4.0") public GitSCMSource(String id, String remote, String credentialsId, String remoteName, String rawRefSpecs, String includes, String excludes, boolean ignoreOnPushNotifications) Deprecated. -
GitSCMSource
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("3.4.0") public GitSCMSource(String id, String remote, String credentialsId, String includes, String excludes, boolean ignoreOnPushNotifications) Deprecated.
-
-
Method Details
-
setCredentialsId
-
setTraits
- Overrides:
setTraitsin classjenkins.scm.api.SCMSource
-
readResolve
- 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
- Specified by:
getCredentialsIdin classAbstractGitSCMSource
-
getRemote
- Specified by:
getRemotein classAbstractGitSCMSource- 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:
getRefSpecsin classAbstractGitSCMSource- Returns:
- the ref specs.
-
getTraits
Description copied from class:AbstractGitSCMSourceReturns theSCMSourceTraitinstances for thisAbstractGitSCMSource.- Overrides:
getTraitsin classAbstractGitSCMSource- Returns:
- the
SCMSourceTraitinstances
-