Class SparseCheckoutPaths
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitSCMExtension>
-
- hudson.plugins.git.extensions.GitSCMExtension
-
- hudson.plugins.git.extensions.impl.SparseCheckoutPaths
-
- All Implemented Interfaces:
Describable<GitSCMExtension>
public class SparseCheckoutPaths extends GitSCMExtension
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSparseCheckoutPaths.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description SparseCheckoutPaths(List<SparseCheckoutPath> sparseCheckoutPaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecorateCheckoutCommand(GitSCM scm, Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, org.jenkinsci.plugins.gitclient.CheckoutCommand cmd)Called before aCheckoutCommandis executed to allow extensions to alter its behaviour.voiddecorateCloneCommand(GitSCM scm, Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, org.jenkinsci.plugins.gitclient.CloneCommand cmd)Called before aCloneCommandis executed to allow extensions to alter its behaviour.voiddetermineSupportForJGit(GitSCM scm, org.jenkinsci.plugins.gitclient.UnsupportedCommand cmd)Called when support of JGit for a particular or multiple extensions is to be determinedbooleanequals(Object o)List<SparseCheckoutPath>getSparseCheckoutPaths()inthashCode()StringtoString()-
Methods inherited from class hudson.plugins.git.extensions.GitSCMExtension
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCloneCommand, decorateFetchCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariables, requiresWorkspaceForPolling
-
-
-
-
Constructor Detail
-
SparseCheckoutPaths
@DataBoundConstructor public SparseCheckoutPaths(List<SparseCheckoutPath> sparseCheckoutPaths)
-
-
Method Detail
-
getSparseCheckoutPaths
public List<SparseCheckoutPath> getSparseCheckoutPaths()
-
decorateCloneCommand
public void decorateCloneCommand(GitSCM scm, Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, org.jenkinsci.plugins.gitclient.CloneCommand cmd) throws IOException, InterruptedException, hudson.plugins.git.GitException
Description copied from class:GitSCMExtensionCalled before aCloneCommandis executed to allow extensions to alter its behaviour.- Overrides:
decorateCloneCommandin classGitSCMExtension- Parameters:
scm- GitSCM objectbuild- run contextgit- GitClientlistener- build logcmd- clone command to be decorated- Throws:
IOException- on input or output errorInterruptedException- when interruptedhudson.plugins.git.GitException- on git error
-
decorateCheckoutCommand
public void decorateCheckoutCommand(GitSCM scm, Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, org.jenkinsci.plugins.gitclient.CheckoutCommand cmd) throws IOException, InterruptedException, hudson.plugins.git.GitException
Description copied from class:GitSCMExtensionCalled before aCheckoutCommandis executed to allow extensions to alter its behaviour.- Overrides:
decorateCheckoutCommandin classGitSCMExtension- Parameters:
scm- GitSCM objectbuild- run contextgit- GitClientlistener- build logcmd- checkout command to be decorated- Throws:
IOException- on input or output errorInterruptedException- when interruptedhudson.plugins.git.GitException- on git error
-
determineSupportForJGit
public void determineSupportForJGit(GitSCM scm, @NonNull org.jenkinsci.plugins.gitclient.UnsupportedCommand cmd)
Description copied from class:GitSCMExtensionCalled when support of JGit for a particular or multiple extensions is to be determined- Overrides:
determineSupportForJGitin classGitSCMExtension- Parameters:
scm- GitSCM objectcmd- UnsupportedCommand object
-
-