Bamboo OnDemand C++ Coverage/Profile reporting and Release Management
Asked by Matt Clarkson:

We have set up Bamboo OnDemand with custom agents. We primarily target C++ so have written a cppunit JunitOutputter Class that gives us some great integration. If anyone is interested in the Junit class I can post the patch - gives much better output than XSLT conversion from unit.

We would like to do more automatic integration such as coverage and profile support. I could possibly write a gcov to NCover covert to but was wondering if anything will change with the impending 4.1 update?

Also we need to have all our releases going through bamboo with correct automatic branching. Should I wait until 4.1 before implementing this into our build system?


Answers:
author: Przemek Bruski
body: > We would like to do more automatic integration such as coverage and profile support. I could possibly write a gcov to NCover covert to but was wondering if anything will change with the impending 4.1 update?

No gcov support is planned for 4.1/4.2. If you want to have coverage support on OnDemand, converting the coverage into a format known to Bamboo is the only option.
> Also we need to have all our releases going through bamboo with correct automatic branching. Should I wait until 4.1 before implementing this into our build system?

If you're talking about implementing build workflow with branches, you should definitely wait and see what 4.1 has to offer out of the box (or download a trial of Standalone release).

comments: author: James Dumay
body: It looks like [this script](https://code.ros.org/trac/ros/browser/trunk/test/rostest/bin/coverage-to-clover?rev=3098) can convert between the gcov output to the clover xml report file, which is supported [natively by Bamboo](https://confluence.atlassian.com/display/BAMBOO/Using+Bamboo+with+Clover).


author: Matt Clarkson
body: Would you recommend gcov to clover and not gcov to ncover. Or does it not matter?


author: Matt Clarkson
body: I've pretty much got this done now - can you point me in the directions of the clover.xsd so I can make sure my file is correct?


author: James Dumay
body: There isn't any Clover XSD available. The best way to test it is to see if Bamboo can interpret your converted gcover data.


author: Matt Clarkson
body: <http://www.atlassian.com/software/clover/download>

/etc/clover.xsd

However, clover is [not support in OnDemand](https://confluence.atlassian.com/pages/viewpage.action?pageId=253231642).


author: Przemek Bruski
body: Matt, it does seem to be available (at least on my test instance), does it work for you?


author: Matt Clarkson
body: Nah. we now have 4.1 and all the clover stuff has gone...what version is your test instance on?


author: Matt Clarkson
body: It's been moved to another page in Bamboo - sorry I missed it. All integrated with gcov to clover convertor.


author: Glen Tregoning
body: Yup @Matt Clarkson I had the same problem. Seems like bamboo won't take my xml file and render it - seems to be looking for a clover install / license now?

comments: author: Matt Clarkson
body: Now OnDemand has changed to 4.1 I think the clover stuff has been completely yanked out.


author: Matt Clarkson
body: However, the clover plugin is still running:

|----------------------|------------------------------------------------------------------------------|
| 19-Jul-2012 01:15:43 | Build TC-TESTS-WINDOWSSERVER2008R264BITCONFIGURATION-210 completed.          |
| 19-Jul-2012 01:15:45 | Running on server: post build plugin 'NCover Results Collector'              |
| 19-Jul-2012 01:15:45 | Running on server: post build plugin 'Clover Delta Calculator'               |
| 19-Jul-2012 01:15:45 | Running on server: post build plugin 'Build Hanging Detection Configuration' |
| 19-Jul-2012 01:15:45 | Running on server: post build plugin 'Maven Dependencies Postprocessor'      |


author: Przemek Bruski
body: Matt, we are currently considering enabling Clover for OnDemand - you will be able to use Clover provided that you have a valid Clover license. Clover has not been yanked out, maybe it's just in a different place (check Job configuration/misc tab)

Watch this page for latest updates: <https://confluence.atlassian.com/pages/viewpage.action?pageId=253231642>.


author: Matt Clarkson
body: Sweet, thanks for the update.


author: Przemek Bruski
body: That's correct.


author: Matt Clarkson
body: When you say about license - would you just need to buy the 1 server license for AOD?


Tags: cloud