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 CheckoutCommand
branch(String branch)
branch.CheckoutCommand
deleteBranchIfExist(boolean deleteBranch)
deleteBranchIfExist.CheckoutCommand
lfsCredentials(com.cloudbees.plugins.credentials.common.StandardCredentials lfsCredentials)
Use separate credentials for "git lfs pull".CheckoutCommand
lfsRemote(String lfsRemote)
Call "git lfs pull" for the given remote after checkout.CheckoutCommand
ref(String ref)
ref.CheckoutCommand
sparseCheckoutPaths(List<String> sparseCheckoutPaths)
sparseCheckoutPaths.CheckoutCommand
timeout(Integer timeout)
timeout.-
Methods inherited from interface org.jenkinsci.plugins.gitclient.GitCommand
execute
-
-
-
-
Method Detail
-
ref
CheckoutCommand ref(String ref)
ref.- Parameters:
ref
- aString
object.- Returns:
- a
CheckoutCommand
object.
-
branch
CheckoutCommand branch(String branch)
branch.- Parameters:
branch
- aString
object.- Returns:
- a
CheckoutCommand
object.
-
deleteBranchIfExist
CheckoutCommand deleteBranchIfExist(boolean deleteBranch)
deleteBranchIfExist.- Parameters:
deleteBranch
- a boolean.- Returns:
- a
CheckoutCommand
object.
-
sparseCheckoutPaths
CheckoutCommand sparseCheckoutPaths(List<String> sparseCheckoutPaths)
sparseCheckoutPaths.- Parameters:
sparseCheckoutPaths
- aList
object.- Returns:
- a
CheckoutCommand
object.
-
timeout
CheckoutCommand timeout(Integer timeout)
timeout.- Parameters:
timeout
- aInteger
object.- Returns:
- a
CheckoutCommand
object.
-
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
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.
-
-