Using OpenClover with Bamboo

OpenClover? Huh what's that?

Atlassian Clover was recently open sourced and Atlassian announced there won't be any new versions. 

Is it bad? Not necessairly. This event empowered the community to start forks of Clover and give this product a second life. One of the forks - OpenClover - was started by former Atlassian Clover developers (but it's not backed by Atlassian in any means).



How to use OpenClover with Bamboo

Although Bamboo at them moment doesn't provide any formal integration with OpenClover, it's still possible to leverage OpenClover in Bamboo builds. Afterall, OpenClover and Atlassian Clover share majority of codebase, don't they ?


Integrate OpenClover with your build

First of all, you need to integrate OpenClover with your build. OpenClover provides plenty of integrations with various tools, but we're going to focus here on Maven mostly, as it's the most popular build tool for Java projects.  

To get OpenClover working with a minimal valid configuration just execute the following Maven command:

mvn clean org.openclover:clover-maven-plugin:setup verify org.openclover:clover-maven-plugin:aggregate org.openclover:clover-maven-plugin:clover

In case you need more sophisticated configuration, you can refer to Atlassian Clover documentation with one caveat, you'll need to remember to migrate any Atlassian Clover references to OpenClover in order to enjoy free, community edition of this software. 

 

Configure Bamboo to read OpenClover reports

As I wrote in previous points, Atlassian Clover and OpenClover are quite similar and they both produce coverage reports in the same format. This means it is possible to leverage Bamboo Clover integration to show OpenClover reports. 

In order to do that you need to configure Bamboo to invoke Maven with flags enabling OpenClover

Screen Shot 2017-08-25 at 15.53.34.png

 

 

Once Bamboo sucessfully buids your project, it's enough to enable Bamboo Clover integration. Remember to select Clover is already integrated into this build and clover.xml file will be produced

openclover_config.png

And voilà!

Bamboo shows reports produced by OpenClover in a Clover tab.

 

 

 

0 comments

Comment

Log in or Sign up to comment
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,820 views 0 6
Read article

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