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

disk usage plugin should be not run every 60 minutes, but whenever a new build is complete

    Details

    • Similar Issues:

      Description

      The disk usage plugin could use some redesign. It currently will fire off every 60 minutes regardless of whether any new builds have happened. This is kind of a waste of effort since we really only need to check when a build completes.

      There are better ways of enabling disk usage monitoring, for example, BuildWrapper extension lets us get notified whenever a build is setting up and gives the plugin a reference to a BuildListener. This BuildListener will be notified when the job completes. It's at this point that the disk usage should be recalculated..

      Thanks!

        Attachments

          Activity

          Hide
          vjuranek vjuranek added a comment -

          Hi, thanks for good idea. I want to completely rewrite the disk usage, therefore I added AperiodicWork quite log time ago, but still haven't had enough time to rewrite plugin itself. Adding option to launch the after job is completed is a good idea and I'll kept it in mind when rewriting it (hopefully soon

          Show
          vjuranek vjuranek added a comment - Hi, thanks for good idea. I want to completely rewrite the disk usage, therefore I added AperiodicWork quite log time ago, but still haven't had enough time to rewrite plugin itself. Adding option to launch the after job is completed is a good idea and I'll kept it in mind when rewriting it (hopefully soon
          Hide
          lvotypkova Lucie Votypkova added a comment -

          Fixed and should be available since 0.22

          Show
          lvotypkova Lucie Votypkova added a comment - Fixed and should be available since 0.22

            People

            • Assignee:
              lvotypkova Lucie Votypkova
              Reporter:
              jieryn jieryn
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: