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
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class jenkins.plugins.git.AbstractGitSCMSource
AbstractGitSCMSource.SCMRevisionImpl, AbstractGitSCMSource.SpecificRevisionBuildChooser
Nested classes/interfaces inherited from class jenkins.scm.api.SCMSource
jenkins.scm.api.SCMSource.SourceByItem
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class jenkins.plugins.git.AbstractGitSCMSource
DEFAULT_REMOTE_NAME, REF_SPEC_DEFAULT, REF_SPEC_REMOTE_NAME_PLACEHOLDER, REF_SPEC_REMOTE_NAME_PLACEHOLDER_STR
Fields inherited from class jenkins.scm.api.SCMSource
PRONOUN
-
Constructor Summary
ConstructorDescriptionGitSCMSource
(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 theSCMSourceTrait
instances for thisAbstractGitSCMSource
.boolean
Deprecated.protected Object
void
setBrowser
(GitRepositoryBrowser browser) void
setCredentialsId
(String credentialsId) void
setExtensions
(List<GitSCMExtension> extensions) Deprecated.void
setGitTool
(String gitTool) void
Methods 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, retrieveRevisions
Methods 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:
setTraits
in 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:
getCredentialsId
in classAbstractGitSCMSource
-
getRemote
- Specified by:
getRemote
in 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:
getRefSpecs
in classAbstractGitSCMSource
- Returns:
- the ref specs.
-
getTraits
Description copied from class:AbstractGitSCMSource
Returns theSCMSourceTrait
instances for thisAbstractGitSCMSource
.- Overrides:
getTraits
in classAbstractGitSCMSource
- Returns:
- the
SCMSourceTrait
instances
-