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

failure while using bamboo with automatic clover integration in a multi module maven project

Hellmut Adolphs Jul 11, 2012

Hi,

I have a parent project with a few child projects that I am trying to report on test coverage after the mvn clean test goals are executed in CI through bamboo.

The problem I am seeing is triggered when I enable clover history in bamboo, it manifests as the following:

12-Jul-2012 11:51:06 [INFO] Reactor Summary:
12-Jul-2012 11:51:06 [INFO]
12-Jul-2012 11:51:06 [INFO] Parent for the my-project projects ........... SUCCESS [6.288s]
12-Jul-2012 11:51:06 [INFO] my-project-shared ............................ FAILURE [1.107s]
12-Jul-2012 11:51:06 [INFO] my-project-a ........................ SUCCESS [17.508s]
12-Jul-2012 11:51:06 [INFO]my-project-b ....... SUCCESS [1.933s]
12-Jul-2012 11:51:06 [INFO] my-project-c ........................ SUCCESS [1.973s]
12-Jul-2012 11:51:06 [INFO] my-project-d ................ SUCCESS [2.032s]
12-Jul-2012 11:51:06 [INFO] ------------------------------------------------------------------------
12-Jul-2012 11:51:06 [INFO] BUILD FAILURE
12-Jul-2012 11:51:06 [INFO] ------------------------------------------------------------------------
12-Jul-2012 11:51:06 [INFO] Total time: 42.652s
12-Jul-2012 11:51:06 [INFO] Finished at: Thu Jul 12 11:51:06 EDT 2012
12-Jul-2012 11:51:06 [INFO] Final Memory: 126M/769M
12-Jul-2012 11:51:06 [INFO] ------------------------------------------------------------------------
12-Jul-2012 11:51:06 [ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-clover2-plugin:3.1.6:clover (default-cli) on project my-project-shared: Execution default-cli of goal com.atlassian.maven.plugins:maven-clover2-plugin:3.1.6:clover failed: java.lang.IllegalStateException: basedir /data/bamboo-home/xml-data/build-dir/131073/MY-PROJECTSNAP-JOB1/my-project-shared/.cloverhistory is not a directory -> [Help 1]

The project structure is somehing like this:

my-project

my-project-shared

my-project-a

my-project-b

my-project-c

The build runs fine if i disable clover history, i actually see the colver report generated, but it fails at the end with that error. Is this the expected error if you have more than one agent? i wasn't so concerned with full consistency but some level of history would be nice. If this is not achievable I could force it to use only one agent.

I am only using a default-job (very simple) that has a svn checkout task and then a maven 3 task that simply does mvn clean test.

Thanks for any info on this!

2 answers

0 votes
Marek Parfianowicz Atlassian Team Jul 12, 2012

Hi,

I suggest raising a ticket at support.atlassian.com in Bamboo (BSP) or Clover (CLV) project. First, you can have a chance to get much faster response (due to SLA). Second, your problem looks to be more project/environment-specific so you could freely attach build files, logs and other potentially sensitive data on Support page (due to Atlassian privacy policy).

Regards
Marek

Hellmut Adolphs Jan 14, 2013

Thanks, I did the setup as described in that article and it took me further, but now I am getting a weird error that appears to have to do with having clover in the runtime given the setup as the article describes, here is the error I am getting:

java.lang.NoClassDefFoundError: com_cenqua_clover/CoverageRecorder

Marek Parfianowicz Atlassian Team Jan 14, 2013
Marek Parfianowicz Atlassian Team Jun 12, 2015

Update: the NoClassDefFoundError related with automatic Clover integration has been fixed in Bamboo 5.9 (https://jira.atlassian.com/browse/BAM-13208).

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

69 views 10 5
Join discussion

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