public class CloneOption extends GitSCMExtension
| Modifier and Type | Class and Description |
|---|---|
static class |
CloneOption.DescriptorImpl |
| Constructor and Description |
|---|
CloneOption(boolean shallow,
String reference,
Integer timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
decorateCloneCommand(GitSCM scm,
hudson.model.Run<?,?> build,
org.jenkinsci.plugins.gitclient.GitClient git,
hudson.model.TaskListener listener,
org.jenkinsci.plugins.gitclient.CloneCommand cmd)
Called before a
CloneCommand is executed to allow extensions to alter its behaviour. |
void |
decorateFetchCommand(GitSCM scm,
org.jenkinsci.plugins.gitclient.GitClient git,
hudson.model.TaskListener listener,
org.jenkinsci.plugins.gitclient.FetchCommand cmd)
Called before a
FetchCommand is executed to allow extensions to alter its behaviour. |
String |
getReference() |
GitClientType |
getRequiredClient()
Let extension declare required GitClient implementation.
|
Integer |
getTimeout() |
boolean |
isShallow() |
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, getDescriptor, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariables, requiresWorkspaceForPollingpublic boolean isShallow()
public String getReference()
public Integer getTimeout()
public void decorateCloneCommand(GitSCM scm, hudson.model.Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, hudson.model.TaskListener listener, org.jenkinsci.plugins.gitclient.CloneCommand cmd) throws IOException, InterruptedException, hudson.plugins.git.GitException
GitSCMExtensionCloneCommand is executed to allow extensions to alter its behaviour.decorateCloneCommand in class GitSCMExtensionIOExceptionInterruptedExceptionhudson.plugins.git.GitExceptionpublic void decorateFetchCommand(GitSCM scm, org.jenkinsci.plugins.gitclient.GitClient git, hudson.model.TaskListener listener, org.jenkinsci.plugins.gitclient.FetchCommand cmd) throws IOException, InterruptedException, hudson.plugins.git.GitException
GitSCMExtensionFetchCommand is executed to allow extensions to alter its behaviour.decorateFetchCommand in class GitSCMExtensionIOExceptionInterruptedExceptionhudson.plugins.git.GitExceptionpublic GitClientType getRequiredClient()
GitSCMExtensiongetRequiredClient in class GitSCMExtensionCopyright © 2004-2015. All Rights Reserved.