Displaying Clover Code Coverage Percentage in Jenkins Dashboard

We are able to show Coburtura code coverage in Jenkins dashbaords. It's clear from the Coburtura Jenkins plugin source code that they have written some logic to give an option to display in views/dashboards. 

Screen Shot 2017-08-17 at 12.11.50 PM.png

We have both Coburtura reports (for javascript tests) and Clover reports (for PHP) that work well and report corrently in each project status page. However, we are only able to show Coburtura reports in the dashboard.  Is there a way to do the same with Clover? Unfortunately we are not Java developers otherwise we would submit a PR to the Clover jenkins plugin repo.

Any help would be greatly appreciated!

2 answers

This widget could not be displayed.

Hi Alex,

You wrote:

"Clover reports (for PHP)"

Clover supports Java and Groovy (and there's also a plugin for AspectJ). I guess that you're using the CloverPHP plugin:

https://wiki.jenkins.io/display/JENKINS/Clover+PHP+Plugin 

Cheers

I tried both plugins but neither provided the option to add a coverage column. I actually ended up writing my own plugin and it works great! I would be more than happy to share it with the community but it's my first plugin and I'm not exactly sure how to go about that :) 

In case this is a plugin for Bamboo, then please have a look at https://developers.atlassian.com/ website how to write it. As soon as your plugin is ready, you can publish it on the Marketplace, see  https://developers.atlassian.com/platform/marketplace/ for more details.

 

In case this is a plugin for Jenkins, please have a look at https://wiki.jenkins.io/display/JENKINS/Plugin+tutorial 

This widget could not be displayed.

hi @Alex Buchholz

 

  Me too facing same problem with Jenkins clover plugin. Can you share the custom plugin you wrote.

 

Thanks in advance!

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked yesterday in Data Center

Hi! I'm Cameron Deatsch, enterprise enthusiast and Head of Server at Atlassian. AMA!

Hey team! I'm Cameron Deatsch, Head of Server at Atlassian. At our European Summit just a few weeks ago, I spoke about the latest regarding our Server and Data center products and o...

19,270 views 4 4
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you