public class SubmoduleOption extends GitSCMExtension
Historically, the submodule support was on by default,
and given the clear marker file in the source tree, I think
keeping this default behaviour is sensible.
So when we split out GitSCMExtensions, we decided
to keep the git-submodule handling enabled by default,
and this extension controls the recursiveness and the option
to switch it off.
| Modifier and Type | Class and Description |
|---|---|
static class |
SubmoduleOption.DescriptorImpl |
| Constructor and Description |
|---|
SubmoduleOption(boolean disableSubmodules,
boolean recursiveSubmodules,
boolean trackingSubmodules,
String reference,
Integer timeout,
boolean parentCredentials) |
| Modifier and Type | Method and Description |
|---|---|
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() |
boolean |
getShallow() |
Integer |
getThreads() |
Integer |
getTimeout() |
int |
hashCode() |
boolean |
isDisableSubmodules() |
boolean |
isParentCredentials() |
boolean |
isRecursiveSubmodules() |
boolean |
isTrackingSubmodules() |
void |
onCheckoutCompleted(GitSCM scm,
Run<?,?> build,
org.jenkinsci.plugins.gitclient.GitClient git,
TaskListener listener)
Called when the checkout was completed and the working directory is filled with files.
|
void |
onClean(GitSCM scm,
org.jenkinsci.plugins.gitclient.GitClient git)
Signals when "git-clean" runs.
|
void |
setDepth(Integer depth) |
void |
setShallow(boolean shallow) |
void |
setThreads(Integer threads) |
String |
toString() |
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, populateEnvironmentVariables, requiresWorkspaceForPollingpublic boolean isDisableSubmodules()
public boolean isRecursiveSubmodules()
public boolean isTrackingSubmodules()
public boolean isParentCredentials()
public String getReference()
public Integer getTimeout()
@DataBoundSetter public void setShallow(boolean shallow)
public boolean getShallow()
@DataBoundSetter public void setDepth(Integer depth)
public Integer getDepth()
public Integer getThreads()
@DataBoundSetter public void setThreads(Integer threads)
public void onClean(GitSCM scm, org.jenkinsci.plugins.gitclient.GitClient git) throws IOException, InterruptedException, hudson.plugins.git.GitException
onClean in class GitSCMExtensionscm - GitSCM objectgit - GitClientIOException - on input or output errorInterruptedException - when interruptedhudson.plugins.git.GitException - on git errorpublic void onCheckoutCompleted(GitSCM scm, Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener) throws IOException, InterruptedException, hudson.plugins.git.GitException
SCM.checkout(Run, Launcher, FilePath, TaskListener, File, SCMRevisionState) for the available parameters,
except workingDirectory
Do not move the HEAD to another commit, as by this point the commit to be built is already determined
and recorded (such as changelog.)onCheckoutCompleted in class GitSCMExtensionscm - GitSCM objectbuild - run contextgit - GitClientlistener - build logIOException - 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 objectCopyright © 2007–2021. All rights reserved.