It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using Clover with Bamboo on maven2 builds

gopikrsihan gadu Feb 15, 2012

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

0 votes
Marek Parfianowicz Atlassian Team Jun 25, 2012

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Opsgenie

Handling Opsgenie Alerts

Hi everyone, welcome to the kb articles for Opsgenie FAQs. I'm one of the Technical Support Engineers for Opsgenie who will be providing weekly posts on FAQs from customers.   All alerts are ...

72 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you