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>
public class GitSCMSource extends AbstractGitSCMSource
ASCMSourcethat discovers branches in a git repository.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGitSCMSource.DescriptorImplstatic classGitSCMSource.ListenerImpl-
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 Modifier and Type Field Description static LoggerLOGGER-
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
-
-
Constructor Summary
Constructors Constructor Description GitSCMSource(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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetCredentialsId()StringgetRawRefSpecs()Deprecated.protected List<org.eclipse.jgit.transport.RefSpec>getRefSpecs()Deprecated.StringgetRemote()List<jenkins.scm.api.trait.SCMSourceTrait>getTraits()Returns theSCMSourceTraitinstances for thisAbstractGitSCMSource.booleanisIgnoreOnPushNotifications()Deprecated.protected ObjectreadResolve()voidsetBrowser(GitRepositoryBrowser browser)voidsetCredentialsId(String credentialsId)voidsetExtensions(List<GitSCMExtension> extensions)Deprecated.voidsetGitTool(String gitTool)voidsetTraits(List<jenkins.scm.api.trait.SCMSourceTrait> traits)-
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 Detail
-
LOGGER
public static final Logger LOGGER
-
-
Constructor Detail
-
GitSCMSource
@DataBoundConstructor public GitSCMSource(String remote)
-
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 Detail
-
setCredentialsId
@DataBoundSetter public void setCredentialsId(@CheckForNull String credentialsId)
-
setTraits
@DataBoundSetter public void setTraits(List<jenkins.scm.api.trait.SCMSourceTrait> traits)
- Overrides:
setTraitsin classjenkins.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:
getCredentialsIdin classAbstractGitSCMSource
-
getRemote
public String 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
@NonNull public List<jenkins.scm.api.trait.SCMSourceTrait> getTraits()
Description copied from class:AbstractGitSCMSourceReturns theSCMSourceTraitinstances for thisAbstractGitSCMSource.- Overrides:
getTraitsin classAbstractGitSCMSource- Returns:
- the
SCMSourceTraitinstances
-
-