Package org.jenkinsci.plugins.gitclient
Interface CheckoutCommand
- All Superinterfaces:
GitCommand
CheckoutCommand interface.
-
Method Summary
Modifier and TypeMethodDescriptionbranch.deleteBranchIfExist
(boolean deleteBranch) deleteBranchIfExist.lfsCredentials
(com.cloudbees.plugins.credentials.common.StandardCredentials lfsCredentials) Use separate credentials for "git lfs pull".Call "git lfs pull" for the given remote after checkout.ref.sparseCheckoutPaths
(List<String> sparseCheckoutPaths) sparseCheckoutPaths.timeout.Methods inherited from interface org.jenkinsci.plugins.gitclient.GitCommand
execute
-
Method Details
-
ref
ref.- Parameters:
ref
- aString
object.- Returns:
- a
CheckoutCommand
object.
-
branch
branch.- Parameters:
branch
- aString
object.- Returns:
- a
CheckoutCommand
object.
-
deleteBranchIfExist
deleteBranchIfExist.- Parameters:
deleteBranch
- a boolean.- Returns:
- a
CheckoutCommand
object.
-
sparseCheckoutPaths
sparseCheckoutPaths.- Parameters:
sparseCheckoutPaths
- aList
object.- Returns:
- a
CheckoutCommand
object.
-
timeout
timeout.- Parameters:
timeout
- aInteger
object.- Returns:
- a
CheckoutCommand
object.
-
lfsRemote
Call "git lfs pull" for the given remote after checkout.- Parameters:
lfsRemote
- name of the remote used for git lfs operations (typically "origin").- Returns:
- a
CheckoutCommand
object.
-
lfsCredentials
CheckoutCommand lfsCredentials(com.cloudbees.plugins.credentials.common.StandardCredentials lfsCredentials) Use separate credentials for "git lfs pull".- Parameters:
lfsCredentials
- aStandardCredentials
object.- Returns:
- a
CheckoutCommand
object.
-