public class GitSCMSource extends AbstractGitSCMSource
SCMSource that discovers branches in a git repository.| Modifier and Type | Class and Description |
|---|---|
static class |
GitSCMSource.DescriptorImpl |
static class |
GitSCMSource.ListenerImpl |
AbstractGitSCMSource.SCMRevisionImpl, AbstractGitSCMSource.SpecificRevisionBuildChooserjenkins.scm.api.SCMSource.SourceByItemExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static Logger |
LOGGER |
DEFAULT_REMOTE_NAME, REF_SPEC_DEFAULT, REF_SPEC_REMOTE_NAME_PLACEHOLDER, REF_SPEC_REMOTE_NAME_PLACEHOLDER_STRPRONOUN| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCredentialsId() |
String |
getRawRefSpecs()
Deprecated.
|
protected List<org.eclipse.jgit.transport.RefSpec> |
getRefSpecs()
Deprecated.
|
String |
getRemote() |
List<jenkins.scm.api.trait.SCMSourceTrait> |
getTraits()
Returns the
SCMSourceTrait instances for this AbstractGitSCMSource. |
boolean |
isIgnoreOnPushNotifications()
Deprecated.
|
void |
setBrowser(GitRepositoryBrowser browser) |
void |
setCredentialsId(String credentialsId) |
void |
setExtensions(List<GitSCMExtension> extensions)
Deprecated.
|
void |
setGitTool(String gitTool) |
void |
setTraits(List<jenkins.scm.api.trait.SCMSourceTrait> traits) |
build, decorate, getBrowser, getCacheDir, getCacheDir, getCacheEntry, getCacheLock, getCredentials, getExcludes, getExtensions, getGitTool, getIncludes, getRemoteConfigs, getRemoteName, isCategoryEnabled, isExcluded, newBuilder, resolveGitTool, resolveGitTool, resolveGitTool, retrieve, retrieve, retrieve, retrieveActions, retrieveActions, retrieveRevisionsafterSave, 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, withIdpublic static final Logger LOGGER
@DataBoundConstructor public GitSCMSource(String remote)
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="3.4.0") public GitSCMSource(String id, String remote, String credentialsId, String remoteName, String rawRefSpecs, String includes, String excludes, boolean ignoreOnPushNotifications)
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="3.4.0") public GitSCMSource(String id, String remote, String credentialsId, String includes, String excludes, boolean ignoreOnPushNotifications)
@DataBoundSetter
public void setCredentialsId(@CheckForNull
String credentialsId)
@DataBoundSetter public void setTraits(List<jenkins.scm.api.trait.SCMSourceTrait> traits)
setTraits in class jenkins.scm.api.SCMSource@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="3.4.0") public boolean isIgnoreOnPushNotifications()
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @DataBoundSetter public void setBrowser(GitRepositoryBrowser browser)
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @DataBoundSetter public void setGitTool(String gitTool)
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @DataBoundSetter @Deprecated public void setExtensions(@CheckForNull List<GitSCMExtension> extensions)
public String getCredentialsId()
getCredentialsId in class AbstractGitSCMSourcepublic String getRemote()
getRemote in class AbstractGitSCMSource@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="3.4.0") public String getRawRefSpecs()
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="3.4.0") protected List<org.eclipse.jgit.transport.RefSpec> getRefSpecs()
getRefSpecs in class AbstractGitSCMSource@NonNull public List<jenkins.scm.api.trait.SCMSourceTrait> getTraits()
AbstractGitSCMSourceSCMSourceTrait instances for this AbstractGitSCMSource.getTraits in class AbstractGitSCMSourceSCMSourceTrait instancesCopyright © 2007–2020. All rights reserved.