public class CheckoutOption extends FakeGitSCMExtension
| Modifier and Type | Class and Description |
|---|---|
static class |
CheckoutOption.DescriptorImpl |
| Constructor and Description |
|---|
CheckoutOption(Integer timeout) |
| Modifier and Type | Method and 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 a
CheckoutCommand 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 determined
|
boolean |
equals(Object o) |
Integer |
getTimeout() |
int |
hashCode() |
boolean |
requiresWorkspaceForPolling() |
String |
toString() |
beforeCheckout, beforeCheckout, decorate, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariables@DataBoundConstructor public CheckoutOption(Integer timeout)
public Integer getTimeout()
public boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling in class GitSCMExtensiontrue when this extension has a requirement to get a workspace during polling,
typically as it has to check for incoming changes, not just remote HEAD.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
CheckoutCommand is executed to allow extensions to alter its behaviour.decorateCheckoutCommand in class GitSCMExtensionscm - GitSCM objectbuild - run contextgit - GitClientlistener - build logcmd - checkout command to be decoratedIOException - on input or output errorInterruptedException - when interruptedhudson.plugins.git.GitException - on git errorpublic void determineSupportForJGit(GitSCM scm, @NonNull org.jenkinsci.plugins.gitclient.UnsupportedCommand cmd)
GitSCMExtensiondetermineSupportForJGit in class GitSCMExtensionscm - GitSCM objectcmd - UnsupportedCommand object@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
decorateCheckoutCommand in class GitSCMExtensionIOExceptionInterruptedExceptionhudson.plugins.git.GitExceptionCopyright © 2007–2021. All rights reserved.