public abstract class AbstractGitHubSCMSource
extends jenkins.plugins.git.AbstractGitSCMSource
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractGitHubSCMSource.AbstractGitHubSCMSourceDescriptor |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGitHubSCMSource(String id,
String apiUri,
String checkoutCredentialsId,
String scanCredentialsId,
String repoOwner,
String repository) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doRetrieve(jenkins.scm.api.SCMHeadObserver observer,
hudson.model.TaskListener listener,
org.kohsuke.github.GHRepository repo) |
protected jenkins.scm.api.SCMRevision |
doRetrieve(jenkins.scm.api.SCMHead head,
hudson.model.TaskListener listener,
org.kohsuke.github.GHRepository repo) |
String |
getApiUri() |
String |
getCheckoutCredentialsId() |
String |
getCredentialsId()
Returns the effective credentials used to check out sources:
null - anonymous access
SAME - represents that we want to use the same as scan credentials
UUID - represents the credentials identifier
|
AbstractGitHubSCMSource.AbstractGitHubSCMSourceDescriptor |
getDescriptor() |
String |
getExcludes() |
String |
getIncludes() |
protected jenkins.scm.api.SCMSourceCriteria.Probe |
getProbe(String branch,
String thing,
String ref,
org.kohsuke.github.GHRepository repo,
hudson.model.TaskListener listener)
Returns a
SCMSourceCriteria.Probe for use in doRetrieve(jenkins.scm.api.SCMHeadObserver, hudson.model.TaskListener, org.kohsuke.github.GHRepository). |
String |
getRemote() |
String |
getRepoOwner() |
String |
getRepository() |
String |
getScanCredentialsId() |
RepositoryUriResolver |
getUriResolver()
Returns a
RepositoryUriResolver according to credentials configuration. |
protected void |
retrieve(jenkins.scm.api.SCMHeadObserver observer,
hudson.model.TaskListener listener) |
protected jenkins.scm.api.SCMRevision |
retrieve(jenkins.scm.api.SCMHead head,
hudson.model.TaskListener listener) |
void |
setExcludes(String excludes) |
void |
setIncludes(String includes) |
build, getCacheDir, getCacheEntry, getCacheLock, getCredentials, getRefSpecs, getRemoteConfigs, getRemoteName, isExcluded@CheckForNull public String getApiUri()
@CheckForNull public String getCredentialsId()
getCredentialsId in class jenkins.plugins.git.AbstractGitSCMSource@CheckForNull public String getScanCredentialsId()
@CheckForNull public String getCheckoutCredentialsId()
public String getRepoOwner()
public String getRepository()
public RepositoryUriResolver getUriResolver()
RepositoryUriResolver according to credentials configuration.RepositoryUriResolverpublic AbstractGitHubSCMSource.AbstractGitHubSCMSourceDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<jenkins.scm.api.SCMSource>getDescriptor in class hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMSource>@Nonnull public String getIncludes()
getIncludes in class jenkins.plugins.git.AbstractGitSCMSource@Nonnull public String getExcludes()
getExcludes in class jenkins.plugins.git.AbstractGitSCMSourcepublic String getRemote()
getRemote in class jenkins.plugins.git.AbstractGitSCMSourceprotected final void retrieve(jenkins.scm.api.SCMHeadObserver observer,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
retrieve in class jenkins.plugins.git.AbstractGitSCMSourceIOExceptionInterruptedExceptionprotected abstract void doRetrieve(jenkins.scm.api.SCMHeadObserver observer,
hudson.model.TaskListener listener,
org.kohsuke.github.GHRepository repo)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected jenkins.scm.api.SCMSourceCriteria.Probe getProbe(String branch, String thing, String ref, org.kohsuke.github.GHRepository repo, hudson.model.TaskListener listener)
SCMSourceCriteria.Probe for use in doRetrieve(jenkins.scm.api.SCMHeadObserver, hudson.model.TaskListener, org.kohsuke.github.GHRepository).branch - branch namething - readable name of what this is, e.g. branchref - the refspec, e.g. refs/heads/myproduct-stablerepo - A repository on GitHub.listener - A TaskListener to log useful informationSCMSourceCriteria.Probe@CheckForNull protected jenkins.scm.api.SCMRevision retrieve(jenkins.scm.api.SCMHead head, hudson.model.TaskListener listener) throws IOException, InterruptedException
retrieve in class jenkins.plugins.git.AbstractGitSCMSourceIOExceptionInterruptedExceptionprotected jenkins.scm.api.SCMRevision doRetrieve(jenkins.scm.api.SCMHead head,
hudson.model.TaskListener listener,
org.kohsuke.github.GHRepository repo)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.