• Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • git-plugin
    • None

      I would like to suggest an option to allow exclusions for git clean. Currently, when "Clean workspace" is selected, "git clean -fdx" is run, which is a great way of starting with a pristine build directory. However, if for Maven projects a "Local to the workspace" M2 repository is selected, the clean command will also clean away the repository, which will cause hundreds of artifacts to be re-downloaded. Even though a maven proxy makes this les worse, it would be nice if there was an option to allow exclusions from the clean (git clean -fdx -e <pattern>).

          [JENKINS-29893] Allow exclusions for git clean

          sseidel created issue -
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-22400 [ JENKINS-22400 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 164971 ] New: JNJira + In-Review [ 181767 ]
          Mark Waite made changes -
          Link New: This issue is duplicated by JENKINS-45705 [ JENKINS-45705 ]
          Leandro Lucarella made changes -
          Link Original: This issue is duplicated by JENKINS-45705 [ JENKINS-45705 ]
          Nicolas De Loof made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ] New: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-63383 [ JENKINS-63383 ]
          Mark Waite made changes -
          Resolution New: Won't Do [ 10001 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            sseidel sseidel
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: