Class CleanBeforeCheckout

All Implemented Interfaces:
Describable<GitSCMExtension>

public class CleanBeforeCheckout extends GitSCMExtension
git-clean before the checkout.
Author:
David S Wang
  • Constructor Details

    • CleanBeforeCheckout

      @DataBoundConstructor public CleanBeforeCheckout()
  • Method Details

    • isDeleteUntrackedNestedRepositories

      public boolean isDeleteUntrackedNestedRepositories()
    • setDeleteUntrackedNestedRepositories

      @DataBoundSetter public void setDeleteUntrackedNestedRepositories(boolean deleteUntrackedNestedRepositories)
    • decorateFetchCommand

      @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
      Deprecated.
      Called before a FetchCommand is executed to allow extensions to alter its behaviour.
      Overrides:
      decorateFetchCommand in class GitSCMExtension
      Parameters:
      scm - GitSCM object
      git - GitClient
      listener - build log
      cmd - fetch command to be decorated
      Throws:
      IOException - on input or output error
      InterruptedException - when interrupted
      hudson.plugins.git.GitException - on git error
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object