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

WS Cleanup: ability to remove directories emptied by WS cleanup

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ws-cleanup-plugin
    • None

      The WS cleanup plugin is really great for removing everything except the .git directories from the workspace. However, it leaves around a ton of empty directories when this is done.

      For example, we use the Exclusion pattern:
      **/.git/**
      to do this.

      It would be very useful if there was an option to recursively (going up) remove any directories emptied by the WS cleanup plugin. (ie if a directory was empty previously, it would not remove it).

            olivergondza Oliver Gondža
            sroth Steve Roth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: