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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionJGit was unsupported if depth was non-null.booleanReturns 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- 
UnsupportedCommandpublic UnsupportedCommand()
 
- 
- 
Method Details- 
sparseCheckoutPathsJGit is unsupported if sparseCheckoutPaths is non-empty.- Parameters:
- sparseCheckoutPaths- list of paths to be included in the checkout
- Returns:
- this for chaining
 
- 
timeoutJGit 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
 
- 
lfsRemoteJGit is unsupported if lfsRemote is non-null.- Parameters:
- lfsRemote- URL of large file support server
- Returns:
- this for chaining
 
- 
lfsCredentialspublic 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
 
- 
shallowJGit 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
 
- 
depthJGit was unsupported if depth was non-null.- Parameters:
- depth- depth of commits to be fetched into workspace
- Returns:
- this for chaining
 
- 
firstParentJGit 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
 
- 
threadsJGit is unsupported if threads is non-zero.- Parameters:
- threads- count of threads to use for parallel submodule update
- Returns:
- this for chaining
 
- 
remoteTrackingJGit is unsupported if remoteTracking is true.- Parameters:
- remoteTracking- submodule should use a remote tracking branch if true
- Returns:
- this for chaining
 
- 
refJGit is unsupported if ref is non-empty.- Parameters:
- ref- location of submodule reference repository
- Returns:
- this for chaining
 
- 
parentCredentialsJGit is unsupported if parentCredentials is true.- Parameters:
- parentCredentials- submodule update uses credentials from parent repository if true
- Returns:
- this for chaining
 
- 
useBranchJGit is unsupported if submodule or branchName are non-null.- Parameters:
- submodule- name of submodule that should checkout a specific branch
- branchname- name of branch to be checked out for submodule
- Returns:
- this for chaining
 
- 
gitPublisherJGit doesn't support Git Publisher.- Parameters:
- isEnabled- if true, then git publisher post-build action is enabled in this context
- Returns:
- this for chaining
 
- 
determineSupportForJGitpublic boolean determineSupportForJGit()Returns true if JGit is supported based on previously passed values.- Returns:
- true if JGit is supported based on previously passed values
 
 
-