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,
Run<?,?> build,
org.jenkinsci.plugins.gitclient.GitClient git,
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,
TaskListener listener,
org.jenkinsci.plugins.gitclient.FetchCommand cmd)
Deprecated.
|
void |
determineSupportForJGit(GitSCM scm,
org.jenkinsci.plugins.gitclient.UnsupportedCommand cmd)
Called when support of JGit for a particular or multiple extensions is to be determined
|
boolean |
equals(Object o) |
Integer |
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(Integer 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, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, enableMultipleRevisionDetection, 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(Integer depth)
public Integer getDepth()
public void decorateCloneCommand(GitSCM scm, Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, 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 error@Deprecated public void decorateFetchCommand(GitSCM scm, org.jenkinsci.plugins.gitclient.GitClient git, 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 void determineSupportForJGit(GitSCM scm, @NonNull org.jenkinsci.plugins.gitclient.UnsupportedCommand cmd)
GitSCMExtensiondetermineSupportForJGit in class GitSCMExtensionscm - GitSCM objectcmd - UnsupportedCommand objectpublic GitClientType getRequiredClient()
getRequiredClient in class GitSCMExtensionCopyright © 2007–2020. All rights reserved.