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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      Debian amd64
    • Similar Issues:

      Description

      [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:

        Attachments

          Issue Links

            Activity

            Hide
            wernight 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
            Show
            wernight 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
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: