Package org.jenkinsci.plugins.gitclient
Interface SubmoduleUpdateCommand
-
- All Superinterfaces:
GitCommand
public interface SubmoduleUpdateCommand extends GitCommand
SubmoduleUpdateCommand interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SubmoduleUpdateCommanddepth(Integer depth)When shallow cloning, allow for a depth to be set in cases where you need more than the immediate last commit.SubmoduleUpdateCommandparentCredentials(boolean parentCredentials)If set true and if the git version supports it, use the parent repository credentials when performing a submodule update.SubmoduleUpdateCommandrecursive(boolean recursive)If set true, submodule update will be recursive.SubmoduleUpdateCommandref(String ref)ref.SubmoduleUpdateCommandremoteTracking(boolean remoteTracking)If set true and if the git version supports it, update the submodules to the tip of the branch rather than to a specific SHA1.SubmoduleUpdateCommandshallow(boolean shallow)Only clone the most recent history, not preceding history.SubmoduleUpdateCommandthreads(int threads)Update submodules in parallel with the given number of threads.SubmoduleUpdateCommandtimeout(Integer timeout)timeout.SubmoduleUpdateCommanduseBranch(String submodule, String branchname)useBranch.-
Methods inherited from interface org.jenkinsci.plugins.gitclient.GitCommand
execute
-
-
-
-
Method Detail
-
recursive
SubmoduleUpdateCommand recursive(boolean recursive)
If set true, submodule update will be recursive. Default is non-recursive.- Parameters:
recursive- if true, will recursively update submodules (requires git>=1.6.5)- Returns:
- a
SubmoduleUpdateCommandobject.
-
remoteTracking
SubmoduleUpdateCommand remoteTracking(boolean remoteTracking)
If set true and if the git version supports it, update the submodules to the tip of the branch rather than to a specific SHA1. Refer to git documentation for details. First available in command line git 1.8.2. Default is to update to a specific SHA1 (compatible with previous versions of git)- Parameters:
remoteTracking- if true, will update the submodule to the tip of the branch requested (requires git>=1.8.2)- Returns:
- a
SubmoduleUpdateCommandobject.
-
parentCredentials
SubmoduleUpdateCommand parentCredentials(boolean parentCredentials)
If set true and if the git version supports it, use the parent repository credentials when performing a submodule update.- Parameters:
parentCredentials- if true, will use the credentials of the parent project instead of credentials associated with its own URL- Returns:
- a
SubmoduleUpdateCommandobject.
-
ref
SubmoduleUpdateCommand ref(String ref)
ref.- Parameters:
ref- aStringobject.- Returns:
- a
SubmoduleUpdateCommandobject.
-
useBranch
SubmoduleUpdateCommand useBranch(String submodule, String branchname)
useBranch.- Parameters:
submodule- aStringobject.branchname- aStringobject.- Returns:
- a
SubmoduleUpdateCommandobject.
-
timeout
SubmoduleUpdateCommand timeout(Integer timeout)
timeout.- Parameters:
timeout- aIntegerobject.- Returns:
- a
SubmoduleUpdateCommandobject.
-
shallow
SubmoduleUpdateCommand shallow(boolean shallow)
Only clone the most recent history, not preceding history. Depth of the shallow clone is controlled by the #depth method.- Parameters:
shallow- boolean controlling whether the clone is shallow (requires git>=1.8.4)- Returns:
- a
SubmoduleUpdateCommandobject.
-
depth
SubmoduleUpdateCommand depth(Integer depth)
When shallow cloning, allow for a depth to be set in cases where you need more than the immediate last commit. Has no effect if shallow is set to false (default).- Parameters:
depth- number of revisions to be included in shallow clone (requires git>=1.8.4)- Returns:
- a
SubmoduleUpdateCommandobject.
-
threads
SubmoduleUpdateCommand threads(int threads)
Update submodules in parallel with the given number of threads. Note that this parallelism only applies to the top-level submodules of a repository. Any submodules of those submodules will be updated serially.- Parameters:
threads- number of threads to use for updating submodules in parallel- Returns:
- a
SubmoduleUpdateCommandobject.
-
-