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

Cleanup workspace when last build is >X days ago

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Similar Issues:

      Description

      We have a Jenkins install with lots of different jobs, most of them are triggered by SCM changes. In addition to be able to prune old builds, it would be desirable to be able to clean up the workspace if the last build was more than a specified number of days ago.

        Attachments

          Issue Links

            Activity

            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #4065

            Result = SUCCESS

            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #4065 Result = SUCCESS
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            changelog.html
            http://jenkins-ci.org/commit/jenkins/fec557818c79f8465d3ce73224d51d7f9598f2c2
            Log:
            Improve changelog entry for JENKINS-21322

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: changelog.html http://jenkins-ci.org/commit/jenkins/fec557818c79f8465d3ce73224d51d7f9598f2c2 Log: Improve changelog entry for JENKINS-21322
            Hide
            arthurplma arthur m added a comment -

            Hi,

            This ticket seems to implement exactly what I need, however I can't find how to turn it on in the Jenkins config. Is there anyone that could kindly point me to the proper page?

            Thanks,

            Arthur

            Show
            arthurplma arthur m added a comment - Hi, This ticket seems to implement exactly what I need, however I can't find how to turn it on in the Jenkins config. Is there anyone that could kindly point me to the proper page? Thanks, Arthur
            Hide
            olivergondza Oliver Gondža added a comment -

            arthur m, see hudson.model.WorkspaceCleanupThread.recurrencePeriodHours and hudson.model.WorkspaceCleanupThread.retainForDays at https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties

            Show
            olivergondza Oliver Gondža added a comment - arthur m , see hudson.model.WorkspaceCleanupThread.recurrencePeriodHours and hudson.model.WorkspaceCleanupThread.retainForDays at https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties
            Hide
            arthurplma arthur m added a comment -

            Thanks Oliver

             

            Show
            arthurplma arthur m added a comment - Thanks Oliver  

              People

              • Assignee:
                olivergondza Oliver Gondža
                Reporter:
                lurkie Lieuwe Hummel
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: