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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • git-plugin
    • None
    • Debian amd64

    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

            aeschbacher aeschbacher created issue -
            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
            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
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-22510 [ JENKINS-22510 ]

            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_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
            markewaite Mark Waite made changes -
            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:
            - https://issues.jenkins-ci.org/browse/JENKINS-7445
            - https://issues.jenkins-ci.org/browse/JENKINS-7376
            [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-7445
            - JENKINS-7376
            markewaite Mark Waite made changes -
            Link This issue is related to JENKINS-23694 [ JENKINS-23694 ]
            markewaite Mark Waite made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 144378 ] JNJira + In-Review [ 205884 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: