Package org.jenkinsci.plugins.gitclient
Interface SubmoduleUpdateCommand
- All Superinterfaces:
GitCommand
SubmoduleUpdateCommand interface.
-
Method Summary
Modifier and TypeMethodDescriptionWhen shallow cloning, allow for a depth to be set in cases where you need more than the immediate last commit.parentCredentials
(boolean parentCredentials) If set true and if the git version supports it, use the parent repository credentials when performing a submodule update.recursive
(boolean recursive) If set true, submodule update will be recursive.ref.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.shallow
(boolean shallow) Only clone the most recent history, not preceding history.threads
(int threads) Update submodules in parallel with the given number of threads.timeout.useBranch.Methods inherited from interface org.jenkinsci.plugins.gitclient.GitCommand
execute
-
Method Details
-
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
SubmoduleUpdateCommand
object.
-
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. 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- Returns:
- a
SubmoduleUpdateCommand
object.
-
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
SubmoduleUpdateCommand
object.
-
ref
ref.- Parameters:
ref
- aString
object.- Returns:
- a
SubmoduleUpdateCommand
object.
-
useBranch
useBranch.- Parameters:
submodule
- aString
object.branchname
- aString
object.- Returns:
- a
SubmoduleUpdateCommand
object.
-
timeout
timeout.- Parameters:
timeout
- aInteger
object.- Returns:
- a
SubmoduleUpdateCommand
object.
-
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- Returns:
- a
SubmoduleUpdateCommand
object.
-
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- Returns:
- a
SubmoduleUpdateCommand
object.
-
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
SubmoduleUpdateCommand
object.
-