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 |
| Constructor and Description |
|---|
AbstractGitSCMSource(String id) |
| Modifier and Type | Method and Description |
|---|---|
hudson.scm.SCM |
build(jenkins.scm.api.SCMHead head,
jenkins.scm.api.SCMRevision revision) |
GitRepositoryBrowser |
getBrowser()
Gets
GitRepositoryBrowser to be used with this SCMSource. |
protected static File |
getCacheDir(String cacheEntry) |
protected String |
getCacheEntry() |
protected static Lock |
getCacheLock(String cacheEntry) |
protected com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
getCredentials() |
abstract String |
getCredentialsId() |
abstract String |
getExcludes() |
List<GitSCMExtension> |
getExtensions()
Gets list of extensions, which should be used with this branch source.
|
String |
getGitTool()
Gets Git tool to be used for this SCM Source.
|
abstract String |
getIncludes() |
protected abstract List<org.eclipse.jgit.transport.RefSpec> |
getRefSpecs() |
abstract String |
getRemote() |
protected List<UserRemoteConfig> |
getRemoteConfigs() |
String |
getRemoteName() |
protected boolean |
isExcluded(String branchName)
Returns true if the branchName isn't matched by includes or is matched by excludes.
|
protected hudson.plugins.git.GitTool |
resolveGitTool() |
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) |
protected jenkins.scm.api.SCMRevision |
retrieve(String revision,
hudson.model.TaskListener listener) |
protected Set<String> |
retrieveRevisions(hudson.model.TaskListener listener) |
public AbstractGitSCMSource(String id)
@CheckForNull public abstract String getCredentialsId()
public abstract String getRemote()
public abstract String getIncludes()
public abstract String getExcludes()
@CheckForNull public GitRepositoryBrowser getBrowser()
GitRepositoryBrowser to be used with this SCMSource.null if the default tool should be used.@CheckForNull public String getGitTool()
null if the default tool should be used.@NonNull public List<GitSCMExtension> getExtensions()
public String getRemoteName()
@CheckForNull protected hudson.plugins.git.GitTool resolveGitTool()
@CheckForNull
protected jenkins.scm.api.SCMRevision retrieve(@NonNull
jenkins.scm.api.SCMHead head,
@NonNull
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
retrieve in class jenkins.scm.api.SCMSourceIOExceptionInterruptedException@NonNull
protected void retrieve(@NonNull
jenkins.scm.api.SCMHeadObserver observer,
@NonNull
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
retrieve in class jenkins.scm.api.SCMSourceIOExceptionInterruptedException@CheckForNull
protected jenkins.scm.api.SCMRevision retrieve(@NonNull
String revision,
@NonNull
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
retrieve in class jenkins.scm.api.SCMSourceIOExceptionInterruptedException@CheckForNull protected Set<String> retrieveRevisions(@NonNull hudson.model.TaskListener listener) throws IOException, InterruptedException
retrieveRevisions in class jenkins.scm.api.SCMSourceIOExceptionInterruptedExceptionprotected String getCacheEntry()
@CheckForNull protected com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getCredentials()
protected abstract List<org.eclipse.jgit.transport.RefSpec> getRefSpecs()
@NonNull
public hudson.scm.SCM build(@NonNull
jenkins.scm.api.SCMHead head,
@CheckForNull
jenkins.scm.api.SCMRevision revision)
build in class jenkins.scm.api.SCMSourceprotected List<UserRemoteConfig> getRemoteConfigs()
protected boolean isExcluded(String branchName)
branchName - name of branchCopyright © 2007–2016. All rights reserved.