public class GitHubSCMSource
extends jenkins.plugins.git.AbstractGitSCMSource
| Modifier and Type | Class and Description |
|---|---|
static class |
GitHubSCMSource.DescriptorImpl |
| Constructor and Description |
|---|
GitHubSCMSource(String id,
String apiUri,
String checkoutCredentialsId,
String scanCredentialsId,
String repoOwner,
String repository) |
| Modifier and Type | Method and Description |
|---|---|
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
|
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). |
protected List<org.eclipse.jgit.transport.RefSpec> |
getRefSpecs() |
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, 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()
protected List<org.eclipse.jgit.transport.RefSpec> getRefSpecs()
getRefSpecs in class jenkins.plugins.git.AbstractGitSCMSourcepublic RepositoryUriResolver getUriResolver()
RepositoryUriResolver according to credentials configuration.RepositoryUriResolver@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 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-2016. All Rights Reserved.