Package org.jenkinsci.plugins.gitclient
Class UnsupportedCommand
java.lang.Object
org.jenkinsci.plugins.gitclient.UnsupportedCommand
A command to convey unsupported features. Currently, implemented for JGit.
All of the operations listed below are not implemented in JGit currently.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionJGit was unsupported if depth was non-null.boolean
Returns true if JGit is supported based on previously passed values.firstParent
(boolean firstParent) JGit is unsupported if firstParent is true.gitPublisher
(boolean isEnabled) JGit doesn't support Git Publisher.lfsCredentials
(com.cloudbees.plugins.credentials.common.StandardCredentials lfsCredentials) JGit is unsupported if lfsCredentials is non-null.JGit is unsupported if lfsRemote is non-null.parentCredentials
(boolean parentCredentials) JGit is unsupported if parentCredentials is true.JGit is unsupported if ref is non-empty.remoteTracking
(boolean remoteTracking) JGit is unsupported if remoteTracking is true.shallow
(boolean shallow) JGit was unsupported if shallow is true, but is now allowed.sparseCheckoutPaths
(List<String> sparseCheckoutPaths) JGit is unsupported if sparseCheckoutPaths is non-empty.JGit is unsupported if threads is non-zero.JGit is unsupported if timeout is non-null.JGit is unsupported if submodule or branchName are non-null.
-
Constructor Details
-
UnsupportedCommand
public UnsupportedCommand()
-
-
Method Details
-
sparseCheckoutPaths
JGit is unsupported if sparseCheckoutPaths is non-empty.- Parameters:
sparseCheckoutPaths
- list of paths to be included in the checkout- Returns:
- this for chaining
-
timeout
JGit is unsupported if timeout is non-null. Could be supported if timeout is 0, since that means no timeout.- Parameters:
timeout
- maximum time git operation is allowed before it is interrupted- Returns:
- this for chaining
-
lfsRemote
JGit is unsupported if lfsRemote is non-null.- Parameters:
lfsRemote
- URL of large file support server- Returns:
- this for chaining
-
lfsCredentials
public UnsupportedCommand lfsCredentials(com.cloudbees.plugins.credentials.common.StandardCredentials lfsCredentials) JGit is unsupported if lfsCredentials is non-null.- Parameters:
lfsCredentials
- credential used for large file support- Returns:
- this for chaining
-
shallow
JGit was unsupported if shallow is true, but is now allowed.- Parameters:
shallow
- if true then shallow clone and fetch are enabled- Returns:
- this for chaining
-
depth
JGit was unsupported if depth was non-null.- Parameters:
depth
- depth of commits to be fetched into workspace- Returns:
- this for chaining
-
firstParent
JGit is unsupported if firstParent is true.- Parameters:
firstParent
- if true, only consider the first parents of a merge in revision list- Returns:
- this for chaining
-
threads
JGit is unsupported if threads is non-zero.- Parameters:
threads
- count of threads to use for parallel submodule update- Returns:
- this for chaining
-
remoteTracking
JGit is unsupported if remoteTracking is true.- Parameters:
remoteTracking
- submodule should use a remote tracking branch if true- Returns:
- this for chaining
-
ref
JGit is unsupported if ref is non-empty.- Parameters:
ref
- location of submodule reference repository- Returns:
- this for chaining
-
parentCredentials
JGit is unsupported if parentCredentials is true.- Parameters:
parentCredentials
- submodule update uses credentials from parent repository if true- Returns:
- this for chaining
-
useBranch
JGit is unsupported if submodule or branchName are non-null.- Parameters:
submodule
- name of submodule that should checkout a specific branchbranchname
- name of branch to be checked out for submodule- Returns:
- this for chaining
-
gitPublisher
JGit doesn't support Git Publisher.- Parameters:
isEnabled
- if true, then git publisher post-build action is enabled in this context- Returns:
- this for chaining
-
determineSupportForJGit
public boolean determineSupportForJGit()Returns true if JGit is supported based on previously passed values.- Returns:
- true if JGit is supported based on previously passed values
-