HTML Publisher for S3?

6 views
Skip to first unread message

Basil Crow

unread,
Aug 29, 2019, 1:42:57 PM8/29/19
to Jenkins Users
Hi all,

I generate HTML code coverage reports with JaCoCo and make them available via the Jenkins UI with the HTML Publisher Plugin, much as is described here:

    https://www.cloudbees.com/blog/publishing-html-reports-pipeline

The trouble is that these reports contain thousands of tiny HTML files, which get saved to my build directory. This makes deleting old builds a very slow operation, since the master has to delete thousands of tiny files.

I could just zip the results and publish the result as an artifact, but that wouldn't be as convenient for users. Users would then need to download and extract the archive, as opposed to (more conveniently) being able to browse the coverage report in the Jenkins UI with a few clicks.

Ideally I'd be able to publish the HTML files in S3 and have a link on the sidebar to the (S3-hosted) coverage results. Then I could set the artifacts to expire in S3 based on a sensible expiration policy, and I wouldn't have to worry about thousands of tiny files cluttering my build directories.

Does anyone have any ideas about how best to accomplish this?

Thanks,
Basil
Reply all
Reply to author
Forward
0 new messages