Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Displaying Clover Code Coverage Percentage in Jenkins Dashboard

Alex Buchholz August 17, 2017

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

0 votes
Satheesh Kumar April 2, 2018

hi @Alex Buchholz

 

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

 

Thanks in advance!

0 votes
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 15, 2017

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

Alex Buchholz September 15, 2017

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 :) 

Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 15, 2017

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 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events