public class PruneStaleTag extends GitSCMExtension
| Modifier and Type | Class and Description |
|---|---|
static class |
PruneStaleTag.DescriptorImpl |
| Constructor and Description |
|---|
PruneStaleTag(boolean pruneTags)
Control pruning of tags that exist in the local repository but
not in any remote repository.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decorateFetchCommand(GitSCM scm,
Run<?,?> run,
org.jenkinsci.plugins.gitclient.GitClient git,
TaskListener listener,
org.jenkinsci.plugins.gitclient.FetchCommand cmd)
Called before a
FetchCommand is executed to allow extensions to alter its behaviour. |
boolean |
equals(Object o) |
boolean |
getPruneTags()
Needed for pipeline syntax generator.
|
int |
hashCode() |
String |
toString() |
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, determineSupportForJGit, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariables, requiresWorkspaceForPolling@DataBoundConstructor public PruneStaleTag(boolean pruneTags)
pruneTags - if true, tags not found in any remote are deleted from local repositorypublic boolean getPruneTags()
true if this extension is enable, false otherwise.public void decorateFetchCommand(GitSCM scm, @CheckForNull Run<?,?> run, 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 objectrun - Run when fetch is called for Run. null during Job polling.git - GitClientlistener - build logcmd - fetch command to be decoratedIOException - on input or output errorInterruptedException - when interruptedhudson.plugins.git.GitException - on git errorCopyright © 2007–2020. All rights reserved.