Package org.jenkinsci.plugins.gitclient
Interface CheckoutCommand
-
- All Superinterfaces:
GitCommand
public interface CheckoutCommand extends GitCommand
CheckoutCommand interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CheckoutCommandbranch(String branch)branch.CheckoutCommanddeleteBranchIfExist(boolean deleteBranch)deleteBranchIfExist.CheckoutCommandlfsCredentials(com.cloudbees.plugins.credentials.common.StandardCredentials lfsCredentials)Use separate credentials for "git lfs pull".CheckoutCommandlfsRemote(String lfsRemote)Call "git lfs pull" for the given remote after checkout.CheckoutCommandref(String ref)ref.CheckoutCommandsparseCheckoutPaths(List<String> sparseCheckoutPaths)sparseCheckoutPaths.CheckoutCommandtimeout(Integer timeout)timeout.-
Methods inherited from interface org.jenkinsci.plugins.gitclient.GitCommand
execute
-
-
-
-
Method Detail
-
ref
CheckoutCommand ref(String ref)
ref.- Parameters:
ref- aStringobject.- Returns:
- a
CheckoutCommandobject.
-
branch
CheckoutCommand branch(String branch)
branch.- Parameters:
branch- aStringobject.- Returns:
- a
CheckoutCommandobject.
-
deleteBranchIfExist
CheckoutCommand deleteBranchIfExist(boolean deleteBranch)
deleteBranchIfExist.- Parameters:
deleteBranch- a boolean.- Returns:
- a
CheckoutCommandobject.
-
sparseCheckoutPaths
CheckoutCommand sparseCheckoutPaths(List<String> sparseCheckoutPaths)
sparseCheckoutPaths.- Parameters:
sparseCheckoutPaths- aListobject.- Returns:
- a
CheckoutCommandobject.
-
timeout
CheckoutCommand timeout(Integer timeout)
timeout.- Parameters:
timeout- aIntegerobject.- Returns:
- a
CheckoutCommandobject.
-
lfsRemote
CheckoutCommand lfsRemote(String 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.
-
-