Using Clover with Bamboo on maven2 builds

Getting below error when configuring One-click Clover Integration on Bamboo plan and no report is generating.
Failed to execute plugin 'Clover Results Collector' with error: No file matches the specified pattern:target/site/clover/**/clover.xml

Following are the steps performed for integrating clover
1) From Bamboo Plan/Miscellaneous - For Code coverage I have selected option "Automatically integrate Clover into this build.

2) Added below pluing in maven 2 porject pom.xml
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<version>3.1.3</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>instrument</goal>
</goals>
</execution>
</executions>
</plugin>

3) running maven command: mvn test clover2:setup clover2:aggregate clover2:clover -P cloverCoverage

4) Specified clover results as artifacts in the plan's artifacts configuration.(target/site/clover/clover.xml)

in my execution command i don't have 'clean' phase however my traget is getting cleaned as per logs. Please see below. which could be the reason 'Clover Results Collector' is thorowing error /No file matches the specified pattern:target/site/clover/**/clover.xml'. Please advise

15-Feb-2012 20:22:23 [INFO] Clover Version 3.1.3, built on January 17 2012 (build-845)
15-Feb-2012 20:22:23 [INFO] Loaded from: /home/gopigadu/.m2/repository/com/cenqua/clover/clover/3.1.3/clover-3.1.3.jar
15-Feb-2012 20:22:23 [INFO] Clover: Commercial License registered to Disney Interactive Media Group.
15-Feb-2012 20:22:26 [INFO] Loading coverage database from: '/home/gopigadu/p4Workspace/p4-dol/DiamondReg/trunk/diamond-service/target/clover/clover.db'
15-Feb-2012 20:22:28 [INFO] Writing report to '/home/gopigadu/p4Workspace/p4-dol/DiamondReg/trunk/diamond-service/target/site/clover/clover.xml'
15-Feb-2012 20:22:29 [INFO] [clean:clean {execution: default-clean}]
15-Feb-2012 20:22:29 [INFO] Deleting directory /home/gopigadu/p4Workspace/p4-dol/DiamondReg/trunk/diamond-service/target



Bamboo version: 3.4.3, Bamboo-Colver-plugin: 3.4.3. attached full llog. appreciate your help

1 answer

This widget could not be displayed.

Hi Gopi,

If you're using a one-click integration and have the "Automatically integrate Clover into this build" option switched on, then you should not at the same time configure additional, manual integration. Therefore steps 2-4 are obsolete.

Regards
Marek

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

33 views 1 3
Join discussion

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