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- aStringobject.- Returns:
- a
CheckoutCommandobject.
-
branch
branch.- Parameters:
branch- aStringobject.- Returns:
- a
CheckoutCommandobject.
-
deleteBranchIfExist
deleteBranchIfExist.- Parameters:
deleteBranch- a boolean.- Returns:
- a
CheckoutCommandobject.
-
sparseCheckoutPaths
sparseCheckoutPaths.- Parameters:
sparseCheckoutPaths- aListobject.- Returns:
- a
CheckoutCommandobject.
-
timeout
timeout.- Parameters:
timeout- aIntegerobject.- Returns:
- a
CheckoutCommandobject.
-
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
CheckoutCommandobject.
-
lfsCredentials
CheckoutCommand lfsCredentials(com.cloudbees.plugins.credentials.common.StandardCredentials lfsCredentials) Use separate credentials for "git lfs pull".- Parameters:
lfsCredentials- aStandardCredentialsobject.- Returns:
- a
CheckoutCommandobject.
-