Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13910

git plugin: 'clean after checkout" does not git clean -fdx on submodules

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-plugin
    • None
    • Debian amd64

      [Jenkins 1.465 - git plugin 1.1.18]

      "Clean after checkout" checkbox does not run "git clean -fdx" on submodules.

      As a workaround, we have to run this command first:

      git submodule foreach --recursive git clean -fdx

      NOTE: apparently, this has been already reported and fixed (see:

          [JENKINS-13910] git plugin: 'clean after checkout" does not git clean -fdx on submodules

          wernight added a comment -

          It seems that it's not doing a 'git clean -fdx' even on the main checkout. We have files left over.

          Versions:

          • Jenkins GIT client plugin 1.0.7
          • Jenkins GIT plugin 1.4.0
          • Git server plugin 1.1

          wernight added a comment - It seems that it's not doing a 'git clean -fdx' even on the main checkout. We have files left over. Versions: Jenkins GIT client plugin 1.0.7 Jenkins GIT plugin 1.4.0 Git server plugin 1.1

          Code changed in jenkins
          User: Mark Waite
          Path:
          src/main/java/hudson/plugins/git/extensions/impl/CleanBeforeCheckout.java
          src/main/resources/hudson/plugins/git/extensions/impl/CleanBeforeCheckout/help.html
          src/test/java/hudson/plugins/git/AbstractGitTestCase.java
          src/test/java/hudson/plugins/git/GitSCMTest.java
          http://jenkins-ci.org/commit/git-plugin/743d715f21183e473adae4b4d969f3ccf16d3578
          Log:
          Merge branch 'master' of https://github.com/ds2wang/git-plugin

          [Fixed JENKINS-7376] Clean after checkout cleans submodules
          [Fixed JENKINS-13910] Clean operates on submodules
          [Fixed JENKINS-22510] Clean after checkout causes checkout failure

          Compare: https://github.com/jenkinsci/git-plugin/compare/fd2bc21c8951...743d715f2118

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/extensions/impl/CleanBeforeCheckout.java src/main/resources/hudson/plugins/git/extensions/impl/CleanBeforeCheckout/help.html src/test/java/hudson/plugins/git/AbstractGitTestCase.java src/test/java/hudson/plugins/git/GitSCMTest.java http://jenkins-ci.org/commit/git-plugin/743d715f21183e473adae4b4d969f3ccf16d3578 Log: Merge branch 'master' of https://github.com/ds2wang/git-plugin [Fixed JENKINS-7376] Clean after checkout cleans submodules [Fixed JENKINS-13910] Clean operates on submodules [Fixed JENKINS-22510] Clean after checkout causes checkout failure Compare: https://github.com/jenkinsci/git-plugin/compare/fd2bc21c8951...743d715f2118

            ndeloof Nicolas De Loof
            aeschbacher aeschbacher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: