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

no option to keep only most recent coverage html

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello, thanks for the nice Clover plugin! One issue we are experiencing is that since enabling the clover plugin, we are running out of disk space all the time because it seems to create gigantic directories in jobs/$CLOVER_JOB/builds for each build, because it archives the html reports and perhaps some code as well for each build.

      Having the coverage percentages available is great, as well as the trend, but after enabling Clover each build seems to be about 600MB which is quite a problem. It would be great if there was an option (perhaps default) to only keep artifacts for the most recent build, so you can still have the trend data and see the percentages but not keep around all the artifacts from the build.

      For now I will write a script to clean out everything clover seems to be archiving for all but the most recent build and run it nightly. Thanks for any insight!

        Attachments

          Activity

          Hide
          mcrooney mcrooney added a comment -

          Actually after further investigation I wonder if this is being exacerbated by another issue, where if you have an index.html in your workspace root (and maybe also if the xml file you point clover at is also in the workspace root), the Clover plugin will think your entire workspace is the html to archive and recursively archive the entire workspace for each build. Any ideas?

          Show
          mcrooney mcrooney added a comment - Actually after further investigation I wonder if this is being exacerbated by another issue, where if you have an index.html in your workspace root (and maybe also if the xml file you point clover at is also in the workspace root), the Clover plugin will think your entire workspace is the html to archive and recursively archive the entire workspace for each build. Any ideas?
          Hide
          mcrooney mcrooney added a comment -

          Yes, it was archiving the entire the workspace, and I updated the related issue JENKINS-4944. Anyway, now that I have resolved that problem on our instance, this issue stands that it would be wonderful to keep only the most recent HTML report. The NCover and Javadoc plugins allow this option via checkboxes "Keep past coverage reports" and "Retain Javadoc for each successful build" respectively. I'm imagining something like "Archive only the most recent HTML/PDF report", and when that is checked the report is stored at the project level and not in the individual build directory.

          Show
          mcrooney mcrooney added a comment - Yes, it was archiving the entire the workspace, and I updated the related issue JENKINS-4944 . Anyway, now that I have resolved that problem on our instance, this issue stands that it would be wonderful to keep only the most recent HTML report. The NCover and Javadoc plugins allow this option via checkboxes "Keep past coverage reports" and "Retain Javadoc for each successful build" respectively. I'm imagining something like "Archive only the most recent HTML/PDF report", and when that is checked the report is stored at the project level and not in the individual build directory.
          Hide
          marekparf Marek Parfianowicz added a comment -

          Workarounds:

          Activating the 'Discard Old Builds' checkbox on a job allows an Advanced option to specify 'Max # of builds to keep with artifacts'

          https://support.cloudbees.com/hc/en-us/articles/215549798-Deleting-Old-Builds-Best-Strategy-for-Cleanup-and-disk-space-management 

          Show
          marekparf Marek Parfianowicz added a comment - Workarounds: Activating the 'Discard Old Builds' checkbox on a job allows an Advanced option to specify 'Max # of builds to keep with artifacts' https://support.cloudbees.com/hc/en-us/articles/215549798-Deleting-Old-Builds-Best-Strategy-for-Cleanup-and-disk-space-management  
          Hide
          marekparf Marek Parfianowicz added a comment -

          I'm changing this to a feature request.

          Show
          marekparf Marek Parfianowicz added a comment - I'm changing this to a feature request.

            People

            Assignee:
            npellow npellow
            Reporter:
            mcrooney mcrooney
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: