• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ws-cleanup-plugin
    • None

      ws-cleanup delete all workspace content, it would be nice to have some alternative policy :

      • A regex or ant expression based selection pattern (files or directories)
      • A "older than N days" field based on file creation date.

          [JENKINS-11054] Support policies for workspace cleanup

          Version 0.6 has "include" pattern to delete a selected portion of the workspace.

          It would be useful to add "exclude" patterns.
          A use case: wipe out the workspace but preserve the local Maven repository folder (.repository).

          Kirill Evstigneev added a comment - Version 0.6 has "include" pattern to delete a selected portion of the workspace. It would be useful to add "exclude" patterns. A use case: wipe out the workspace but preserve the local Maven repository folder (.repository).

          Ben Ernst added a comment -

          +1 "older than N days".
          I'd like to clean the workspaces daily.

          Ben Ernst added a comment - +1 "older than N days". I'd like to clean the workspaces daily.

          James Howe added a comment -

          We'd really like the ability to "delete files not under source control", "delete all writeable files" and stuff like that.

          Deleting and then resycning everything simply takes far too long.

          James Howe added a comment - We'd really like the ability to "delete files not under source control", "delete all writeable files" and stuff like that. Deleting and then resycning everything simply takes far too long.

          Anders Hammar added a comment -

          I'd like the possibility to trigger a cleanup once per day for example. In my case I would use it to delete the workspace local maven repository.

          Also, it would be great to have the cleanup triggered based on things like environment variables and such. For example, I'd like a workspace cleanup when I perform releases with the m2 release plugin, which sets an environment variable when a release is performed. But I suppose other triggers should also be possible.

          Anders Hammar added a comment - I'd like the possibility to trigger a cleanup once per day for example. In my case I would use it to delete the workspace local maven repository. Also, it would be great to have the cleanup triggered based on things like environment variables and such. For example, I'd like a workspace cleanup when I perform releases with the m2 release plugin, which sets an environment variable when a release is performed. But I suppose other triggers should also be possible.

            Unassigned Unassigned
            ndeloof Nicolas De Loof
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: