Support for deleting workspace when leaving agent

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      It would be great with support for deleting the workspace when a job leaves an agent. In a setup with shared agents, the disk space for the workspaces tend to grow. One solution is for all jobs to have deleteDir() in their pipeline, but empirical real-world testing shows that users forget or don't care (or don't understand that they need to do this for every agent used in the build).

      This should most likely not be the default but either configurable or at least some sort of API support so that a plugin could add this behavior.

            Assignee:
            Unassigned
            Reporter:
            Anders Hammar
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: