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 |
|---|---|
boolean |
equals(Object o) |
String |
getReference() |
Integer |
getTimeout() |
int |
hashCode() |
boolean |
isDisableSubmodules() |
boolean |
isParentCredentials() |
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.
|
String |
toString() |
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, 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()
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, hudson.model.Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, hudson.model.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 errorCopyright © 2007–2017. All rights reserved.