public class CloneOption extends GitSCMExtension
| Modifier and Type | Class and Description |
|---|---|
static class |
CloneOption.DescriptorImpl |
| Constructor and Description |
|---|
CloneOption(boolean shallow,
String reference) |
| Modifier and Type | Method and Description |
|---|---|
void |
decorateCloneCommand(GitSCM scm,
hudson.model.AbstractBuild<?,?> build,
org.jenkinsci.plugins.gitclient.GitClient git,
hudson.model.BuildListener listener,
org.jenkinsci.plugins.gitclient.CloneCommand cmd)
Called before a
CloneCommand is executed to allow extensions to alter its behaviour. |
String |
getReference() |
GitClientType |
getRequiredClient()
Let extension declare required GitClient implementation. git-plugin will then detect conflicts, and fallback to
globally configured default git client
|
boolean |
isShallow() |
beforeCheckout, decorate, decorateMergeCommand, decorateRevisionToBuild, getDescriptor, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onClean, populateEnvironmentVariables@DataBoundConstructor
public CloneOption(boolean shallow,
String reference)
public boolean isShallow()
public String getReference()
public void decorateCloneCommand(GitSCM scm, hudson.model.AbstractBuild<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, hudson.model.BuildListener 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 GitClientType getRequiredClient()
GitSCMExtensiongetRequiredClient in class GitSCMExtensionCopyright © 2004-2013. All Rights Reserved.