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

Enhance 'Discard Old Builds' option to discard if build disk size is greater than X

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • disk-usage-plugin
    • None
    • Platform: All, OS: All

      It would be nice to be able to configure each project to remove old builds if
      the aggregate disk used for builds has reached X megabytes. This would provide
      a cap on disk usage at the project level and enforced through the build process.

          [JENKINS-3433] Enhance 'Discard Old Builds' option to discard if build disk size is greater than X

          Harry G. added a comment -

          Great idea! Best would be to have a field near the current attributes for how many days / builds to keep.

          Harry G. added a comment - Great idea! Best would be to have a field near the current attributes for how many days / builds to keep.

          Nicholas Fone added a comment -

          On a large Jenkins master server, with 100's of jobs (or more!), disk usage can be a significant problem. Some jobs can easily generate 100MB of logs/history/reports, per build! On the other hand, some jobs might only generate 1MB.

          In both cases, I think it would be very helpful be able to cap the total disk usage for each job in MB, rather than taking a guess at what values to use for the existing "days" and "builds" fields.

          Also, +1 for Harry's implementation suggestion

          Nicholas Fone added a comment - On a large Jenkins master server, with 100's of jobs (or more!), disk usage can be a significant problem. Some jobs can easily generate 100MB of logs/history/reports, per build! On the other hand, some jobs might only generate 1MB. In both cases, I think it would be very helpful be able to cap the total disk usage for each job in MB, rather than taking a guess at what values to use for the existing "days" and "builds" fields. Also, +1 for Harry's implementation suggestion

            Unassigned Unassigned
            petehayes Peter Hayes
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: