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

WS Cleanup: ability to remove directories emptied by WS cleanup

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

          [JENKINS-19334] WS Cleanup: ability to remove directories emptied by WS cleanup

          Steve Roth created issue -
          Steve Roth made changes -
          Description Original: 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).
          New: 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).
          vjuranek made changes -
          Assignee Original: vjuranek [ vjuranek ] New: Lucie Votypkova [ lvotypkova ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150782 ] New: JNJira + In-Review [ 177771 ]
          Lucie Votypkova made changes -
          Assignee Original: Lucie Votypkova [ lvotypkova ] New: Oliver Gondža [ olivergondza ]

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

              Created:
              Updated: