public class CloneOption extends GitSCMExtension
| Modifier and Type | Class and Description |
|---|---|
static class |
CloneOption.DescriptorImpl |
| Constructor and Description |
|---|
CloneOption(boolean shallow,
boolean noTags,
String reference,
Integer timeout) |
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. |
boolean |
equals(Object o) |
int |
getDepth() |
String |
getReference() |
GitClientType |
getRequiredClient()
Let extension declare required GitClient implementation.
|
Integer |
getTimeout() |
int |
hashCode() |
boolean |
isHonorRefspec()
Returns true if the job should clone only the items which match the
refspec, or if all references are cloned, then the refspec should be used
in later operations.
|
boolean |
isNoTags() |
boolean |
isShallow() |
void |
setDepth(int depth) |
void |
setHonorRefspec(boolean honorRefspec)
This setting allows the job definition to control whether the refspec
will be honored during the first clone or not.
|
String |
toString() |
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, getDescriptor, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariables, requiresWorkspaceForPollingpublic boolean isShallow()
public boolean isNoTags()
@DataBoundSetter public void setHonorRefspec(boolean honorRefspec)
honorRefspec - true if refspec should be honored on clonepublic boolean isHonorRefspec()
public String getReference()
public Integer getTimeout()
@DataBoundSetter public void setDepth(int depth)
public int getDepth()
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
CloneCommand is executed to allow extensions to alter its behaviour.decorateCloneCommand in class GitSCMExtensionscm - GitSCM objectbuild - run contextgit - GitClientlistener - build logcmd - clone command to be decoratedIOException - on input or output errorInterruptedException - when interruptedhudson.plugins.git.GitException - on git errorpublic 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
FetchCommand is executed to allow extensions to alter its behaviour.decorateFetchCommand in class GitSCMExtensionscm - GitSCM objectgit - GitClientlistener - build logcmd - fetch command to be decoratedIOException - on input or output errorInterruptedException - when interruptedhudson.plugins.git.GitException - on git errorpublic GitClientType getRequiredClient()
getRequiredClient in class GitSCMExtensionCopyright © 2007–2018. All rights reserved.