Class CleanCheckout

All Implemented Interfaces:
Describable<GitSCMExtension>

public class CleanCheckout extends GitSCMExtension
git-clean after the checkout.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • CleanCheckout

      @DataBoundConstructor public CleanCheckout()
  • Method Details

    • isDeleteUntrackedNestedRepositories

      public boolean isDeleteUntrackedNestedRepositories()
    • setDeleteUntrackedNestedRepositories

      @DataBoundSetter public void setDeleteUntrackedNestedRepositories(boolean deleteUntrackedNestedRepositories)
    • onCheckoutCompleted

      public void onCheckoutCompleted(GitSCM scm, Run<?,?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener) throws IOException, InterruptedException, hudson.plugins.git.GitException
      Called when the checkout was completed and the working directory is filled with files. See SCM.checkout(Run, Launcher, FilePath, TaskListener, File, SCMRevisionState) for the available parameters, except workingDirectory Do not move the HEAD to another commit, as by this point the commit to be built is already determined and recorded (such as changelog.)
      Overrides:
      onCheckoutCompleted in class GitSCMExtension
      Parameters:
      scm - GitSCM object
      build - run context
      git - GitClient
      listener - build log
      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