public abstract class AbstractGitSCMSource extends jenkins.scm.api.SCMSource
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractGitSCMSource.SCMRevisionImpl
Our implementation.
|
static class |
AbstractGitSCMSource.SpecificRevisionBuildChooser |
jenkins.scm.api.SCMSource.SourceByItemExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_REMOTE_NAME
The default remote name to use when configuring the ref specs to use with fetch operations.
|
static String |
REF_SPEC_DEFAULT
The default ref spec template.
|
static String |
REF_SPEC_REMOTE_NAME_PLACEHOLDER
The regex for
REF_SPEC_REMOTE_NAME_PLACEHOLDER_STR. |
static String |
REF_SPEC_REMOTE_NAME_PLACEHOLDER_STR
The placeholder to use in ref spec templates in order to correctly ensure that the ref spec remote name
matches the remote name.
|
PRONOUN| Constructor and Description |
|---|
AbstractGitSCMSource() |
AbstractGitSCMSource(String id)
Deprecated.
|
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, setTraits, toString, withIdpublic static final String DEFAULT_REMOTE_NAME
public static final String REF_SPEC_REMOTE_NAME_PLACEHOLDER_STR
The template uses @{...} as that is an illegal sequence in a remote name
public static final String REF_SPEC_REMOTE_NAME_PLACEHOLDER
REF_SPEC_REMOTE_NAME_PLACEHOLDER_STR.public static final String REF_SPEC_DEFAULT
public AbstractGitSCMSource()
@Deprecated public AbstractGitSCMSource(String id)
@CheckForNull public abstract String getCredentialsId()
public abstract String getRemote()
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="3.4.0") public String getIncludes()
WildcardSCMSourceFilterTrait@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="3.4.0") public String getExcludes()
WildcardSCMSourceFilterTrait@CheckForNull @Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="3.4.0") public GitRepositoryBrowser getBrowser()
GitBrowserSCMSourceTraitGitRepositoryBrowser to be used with this SCMSource.null if the default tool should be used.@CheckForNull @Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="3.4.0") public String getGitTool()
GitToolSCMSourceTraitnull if the default tool should be used.@NonNull @Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="3.4.0") public List<GitSCMExtension> getExtensions()
GitSCMExtensionTrait (and if there isn't one then likely the
GitSCMExtension is not appropriate to use in the context of a SCMSource)@NonNull public List<jenkins.scm.api.trait.SCMSourceTrait> getTraits()
SCMSourceTrait instances for this AbstractGitSCMSource.getTraits in class jenkins.scm.api.SCMSourceSCMSourceTrait instances@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="3.4.0") public String getRemoteName()
RemoteNameSCMSourceTrait@CheckForNull @Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="3.4.0") protected hudson.plugins.git.GitTool resolveGitTool()
resolveGitTool(String).GitTool.GitTool.@CheckForNull @Deprecated protected hudson.plugins.git.GitTool resolveGitTool(String gitTool)
resolveGitTool(String, TaskListener) insteadGitTool.gitTool - the ToolInstallation.getName() to resolve.GitToolprotected hudson.plugins.git.GitTool resolveGitTool(String gitTool, TaskListener listener)
@CheckForNull protected jenkins.scm.api.SCMRevision retrieve(@NonNull jenkins.scm.api.SCMHead head, @NonNull TaskListener listener) throws IOException, InterruptedException
retrieve in class jenkins.scm.api.SCMSourceIOExceptionInterruptedExceptionprotected void retrieve(@CheckForNull
jenkins.scm.api.SCMSourceCriteria criteria,
@NonNull
jenkins.scm.api.SCMHeadObserver observer,
@CheckForNull
jenkins.scm.api.SCMHeadEvent<?> event,
@NonNull
TaskListener listener)
throws IOException,
InterruptedException
retrieve in class jenkins.scm.api.SCMSourceIOExceptionInterruptedException@CheckForNull protected jenkins.scm.api.SCMRevision retrieve(@NonNull String revision, @NonNull TaskListener listener, @CheckForNull Item retrieveContext) throws IOException, InterruptedException
retrieve in class jenkins.scm.api.SCMSourceIOExceptionInterruptedException@NonNull protected Set<String> retrieveRevisions(@NonNull TaskListener listener, @CheckForNull Item retrieveContext) throws IOException, InterruptedException
retrieveRevisions in class jenkins.scm.api.SCMSourceIOExceptionInterruptedException@NonNull protected List<Action> retrieveActions(@CheckForNull jenkins.scm.api.SCMSourceEvent event, @NonNull TaskListener listener) throws IOException, InterruptedException
retrieveActions in class jenkins.scm.api.SCMSourceIOExceptionInterruptedException@NonNull protected List<Action> retrieveActions(@NonNull jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMHeadEvent event, @NonNull TaskListener listener) throws IOException, InterruptedException
retrieveActions in class jenkins.scm.api.SCMSourceIOExceptionInterruptedExceptionprotected boolean isCategoryEnabled(@NonNull
jenkins.scm.api.SCMHeadCategory category)
isCategoryEnabled in class jenkins.scm.api.SCMSourceprotected String getCacheEntry()
@CheckForNull protected com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getCredentials()
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="3.4.0") protected List<org.eclipse.jgit.transport.RefSpec> getRefSpecs()
RefSpecsSCMSourceTraitprotected GitSCMBuilder<?> newBuilder(@NonNull jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMRevision revision)
GitSCMBuilder.
Subclasses should override this method if they want to use a custom GitSCMBuilder or if they need
to pre-decorate the builder.head - the SCMHead.revision - the SCMRevision.GitSCMBuilderfor post-decoration.protected void decorate(GitSCMBuilder<?> builder)
GitSCMBuilder. This method is called by
build(SCMHead, SCMRevision) immediately prior to returning GitSCMBuilder.build().
Subclasses should override this method if they need to overrule builder behaviours defined by traits.builder - the builder to decorate.@NonNull public SCM build(@NonNull jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMRevision revision)
build in class jenkins.scm.api.SCMSource@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="3.4.0") protected List<UserRemoteConfig> getRemoteConfigs()
GitSCMBuilder.asRemoteConfigs()UserRemoteConfig instances.@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="3.4.0") protected boolean isExcluded(String branchName)
WildcardSCMSourceFilterTraitbranchName - name of branch to be testedCopyright © 2007–2020. All rights reserved.