public class GitSCMSourceDefaults extends GitSCMExtension
GitSCM instances created by GitSCMBuilder.
Does not have a descriptor as we do not expect this extension to be user-visible.
With this extension, we anticipate:
| Constructor and Description |
|---|
GitSCMSourceDefaults(boolean includeTags)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decorateCloneCommand(GitSCM scm,
Run<?,?> build,
org.jenkinsci.plugins.gitclient.GitClient git,
TaskListener listener,
org.jenkinsci.plugins.gitclient.CloneCommand cmd)
Called before a
CloneCommand is executed to allow extensions to alter its behaviour. |
void |
decorateFetchCommand(GitSCM scm,
org.jenkinsci.plugins.gitclient.GitClient git,
TaskListener listener,
org.jenkinsci.plugins.gitclient.FetchCommand cmd)
Deprecated.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, determineSupportForJGit, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariables, requiresWorkspaceForPollingpublic GitSCMSourceDefaults(boolean includeTags)
includeTags - true to request fetching tags.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
CloneCommand is executed to allow extensions to alter its behaviour.decorateCloneCommand in class GitSCMExtensionscm - GitSCM objectbuild - run contextgit - GitClientlistener - build logcmd - clone command to be decoratedIOException - on input or output errorInterruptedException - when interruptedhudson.plugins.git.GitException - on git error@Deprecated public void decorateFetchCommand(GitSCM scm, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, org.jenkinsci.plugins.gitclient.FetchCommand cmd) throws IOException, InterruptedException, hudson.plugins.git.GitException
FetchCommand is executed to allow extensions to alter its behaviour.decorateFetchCommand in class GitSCMExtensionscm - GitSCM objectgit - GitClientlistener - build logcmd - fetch command to be decoratedIOException - on input or output errorInterruptedException - when interruptedhudson.plugins.git.GitException - on git errorCopyright © 2007–2021. All rights reserved.