clover report is not properly displaying
Asked by Manjunatha NS:

Hi Team,

Need some help from you: I kicked off the job in bamboo and it finished successfully. It also generated an artifact - a clover report , However, when I view the report, the format is messed up and Class Coverage Distribution and Class Complexity images are missing. Would you help me figure out why this is happening?

Example from my local laptop run vs Bamboo's clover report is attached. Why is the formatting getting lost when bamboo generates the clover report?

also, I have selected **Allow artifacts to be embedded in Bamboo pages** but no lu![Screen Shot- local.png](https://community.atlassian.com/t5/image/serverpage/image-id/103237iBE9C4FED90B43C10/image-size/large?v=v2&px=999 "Screen Shot- local.png")![Screen Shot -bamboo.png](https://community.atlassian.com/t5/image/serverpage/image-id/103238iB8D1779E36765899/image-size/large?v=v2&px=999 "Screen Shot -bamboo.png")![Bamboo admin.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/103239i46B0D3EE17E369BA/image-size/large?v=v2&px=999 "Bamboo admin.JPG")ck


Answers:
author: Richard White _TechTime_
body: Hi Manjunatha,

One possibility is your artifact pattern isn't downloading all of the css and related files from clover's site output.

I would double check the artifact manually, and check that all of the files are present that you see when generating the report manually.

On [this documentation page](https://confluence.atlassian.com/bamboo/enabling-clover-for-bamboo-289277268.html#EnablingCloverforBamboo-Enablingmanualcodecoverageintegration) there is an example artifact copy pattern if the html report is generated in target/site/clover.

comments: author: Manjunatha NS
body: Yes , looks like it is not downloading all of the css and related files from clover's site output.,

ono of our user try this ,

ran clover locally on their laptop and then loaded the file it generated into the browser. That looked perfect. Since the same files are being generated by bamboo builds also, they should render the same. However, maybe the way bamboo loads and copies the files over may be an issue.

E.g <https://bamboo.corp.zscaler.com/artifact/TES-ANS/shared/build-1154/clover/img/classDistrubutionChart.png> this file exists under bamboo but the browser is trying to load it from somewhere else.

\]# ls -ltr /var/reports/notif/img/classDistrubutionChart.png

-rw-r--r--. 1 root root 3197 Jul 15 17:38 /var/reports/notif/img/classDistrubutionChart.png

how should load the report correctly am not getting

Thanks \& Regards,

Manju NS


author: Richard White _TechTime_
body: What is included and what is ignored is defined by the artifact copy pattern if you are using manual clover integration.

See attached screenshot showing a typical configuration:

![Screenshot from 2020-07-21 19-57-11.png](https://community.atlassian.com/t5/image/serverpage/image-id/103785i839EE3A9013C107C/image-size/large?v=v2&px=999 "Screenshot from 2020-07-21 19-57-11.png")

This is defined in the configuration for whichever stage should be generating the clover report.

You can verify what is included in the artifact by going into one of the successful builds, selecting "artifacts" and downloading the clover report artifact. You should see all of the same files that you see when manually generating the report.

Hope that clarifies things for you.

Richard


author: Manjunatha NS
body: in my inspect tab i can see this errors PFA ![inspect-clover.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/103805i11251CADE91253CE/image-size/large?v=v2&px=999 "inspect-clover.JPG")