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,
Integer timeout) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getTimeout() |
boolean |
isDisableSubmodules() |
boolean |
isRecursiveSubmodules() |
boolean |
isTrackingSubmodules() |
void |
onCheckoutCompleted(GitSCM scm,
hudson.model.Run<?,?> build,
org.jenkinsci.plugins.gitclient.GitClient git,
hudson.model.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.
|
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, populateEnvironmentVariables, requiresWorkspaceForPolling@DataBoundConstructor
public SubmoduleOption(boolean disableSubmodules,
boolean recursiveSubmodules,
boolean trackingSubmodules,
Integer timeout)
public boolean isDisableSubmodules()
public boolean isRecursiveSubmodules()
public boolean isTrackingSubmodules()
public Integer getTimeout()
public void onClean(GitSCM scm, org.jenkinsci.plugins.gitclient.GitClient git) throws IOException, InterruptedException, hudson.plugins.git.GitException
GitSCMExtensiononClean in class GitSCMExtensionIOExceptionInterruptedExceptionhudson.plugins.git.GitExceptionpublic void onCheckoutCompleted(GitSCM scm, hudson.model.Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, hudson.model.TaskListener listener) throws IOException, InterruptedException, hudson.plugins.git.GitException
GitSCMExtensionSCM.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 GitSCMExtensionIOExceptionInterruptedExceptionhudson.plugins.git.GitExceptionCopyright © 2004-2015. All Rights Reserved.