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
FieldsModifier and TypeFieldDescriptionstatic booleanIgnore the tag discovery trait when fetching multibranch Pipelines.static final LoggerFields 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
-
IGNORE_TAG_DISCOVERY_TRAIT
public static boolean IGNORE_TAG_DISCOVERY_TRAITIgnore the tag discovery trait when fetching multibranch Pipelines. Git plugin versions 5.7.0 and earlier will always fetch tags when scanning a multibranch Pipeline, whether or not the tag discovery trait had been added. Releases after git plugin 5.7.0 honor the tag discovery trait when scanning a multibranch Pipeline. If the tag discovery trait has been added, then tags are fetched. If the tag discovery trait has not been added, then tags are not fetched. If honoring the tag discovery trait causes problems for a user, a Java property can be set during Jenkins startup to restore the previous (buggy) behavior. Refer to the plugin documentation for more details.
-
-
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
-