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

EXCLUDE pattern fails to protect parent dir with deleteDir option

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: ws-cleanup-plugin
    • Labels:
      None
    • Environment:
      Workspace Cleanup Plugin 0.34
    • Similar Issues:

      Description

      When using WsCleanup with a blacklist-based filter (only EXCLUDE type patterns) and the deleteDirs=true option, parent directories of explicitly excluded paths are not protected.

      As a result, the parent directory is then deleted recursively, also deleting the explicitly excluded child directory.

      If an exclude pattern matches a file, all parent directories (but not their contents!) would need to be implicitly excluded as well.

      The required logic is inverse from use cases where the parent directory would need to be included implicitly (e.g. a copy).

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              Assignee:
              olivergondza Oliver Gond┼ża
              Reporter:
              ext3h Andreas Ringlstetter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: