Class CheckoutOption
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitSCMExtension>
-
- hudson.plugins.git.extensions.GitSCMExtension
-
- hudson.plugins.git.extensions.FakeGitSCMExtension
-
- hudson.plugins.git.extensions.impl.CheckoutOption
-
- All Implemented Interfaces:
Describable<GitSCMExtension>
public class CheckoutOption extends FakeGitSCMExtension
Add options to the checkout command.- Author:
- Mark Waite
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CheckoutOption.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description CheckoutOption(Integer timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
decorateCheckoutCommand(GitSCM scm, AbstractBuild<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, BuildListener listener, org.jenkinsci.plugins.gitclient.CheckoutCommand cmd)
Deprecated.void
decorateCheckoutCommand(GitSCM scm, Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, org.jenkinsci.plugins.gitclient.CheckoutCommand cmd)
Called before aCheckoutCommand
is executed to allow extensions to alter its behaviour.void
determineSupportForJGit(GitSCM scm, org.jenkinsci.plugins.gitclient.UnsupportedCommand cmd)
Called when support of JGit for a particular or multiple extensions is to be determinedboolean
equals(Object o)
Integer
getTimeout()
int
hashCode()
String
toString()
-
Methods inherited from class hudson.plugins.git.extensions.GitSCMExtension
beforeCheckout, beforeCheckout, decorate, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariables, requiresWorkspaceForPolling
-
-
-
-
Constructor Detail
-
CheckoutOption
@DataBoundConstructor public CheckoutOption(Integer timeout)
-
-
Method Detail
-
getTimeout
public Integer getTimeout()
-
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
Called before aCheckoutCommand
is executed to allow extensions to alter its behaviour.- Overrides:
decorateCheckoutCommand
in 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:GitSCMExtension
Called when support of JGit for a particular or multiple extensions is to be determined- Overrides:
determineSupportForJGit
in classGitSCMExtension
- Parameters:
scm
- GitSCM objectcmd
- UnsupportedCommand object
-
decorateCheckoutCommand
@Deprecated public void decorateCheckoutCommand(GitSCM scm, AbstractBuild<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, BuildListener listener, org.jenkinsci.plugins.gitclient.CheckoutCommand cmd) throws IOException, InterruptedException, hudson.plugins.git.GitException
Deprecated.- Overrides:
decorateCheckoutCommand
in classGitSCMExtension
- Throws:
IOException
InterruptedException
hudson.plugins.git.GitException
-
-