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

Allow exclusions for git clean

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: git-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      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>).

        Attachments

          Issue Links

            Activity

            Hide
            markewaite Mark Waite added a comment -

            If we implement exclusions for clean, we should also include implementing timeout for clean, since it would change the same part of the user interface.

            Show
            markewaite Mark Waite added a comment - If we implement exclusions for clean, we should also include implementing timeout for clean, since it would change the same part of the user interface.
            Hide
            pmcevoy Peter McEvoy added a comment -

            Would be nice if a boolean could be passed in to conditionally control if clean should happen or not.  For fast incremental builds I don't want to clean, but occasionally I need to remove rogue binaries hanging around the workspace and I'd like a to let a build parameter control that

            Show
            pmcevoy Peter McEvoy added a comment - Would be nice if a boolean could be passed in to conditionally control if clean should happen or not.  For fast incremental builds I don't want to clean, but occasionally I need to remove rogue binaries hanging around the workspace and I'd like a to let a build parameter control that

              People

              • Assignee:
                Unassigned
                Reporter:
                sseidel sseidel
              • Votes:
                4 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: