This page last changed on Oct 15, 2008 by alui.

Getting started 

To use Clover with Bamboo, you need to:

  1. Either:
    • call the Clover goal in your plan configuration (see Specifying a Plan's Builder);
      or:
    • add the maven-clover-plugin report to the reports section in your POM.
  2. Ensure that there are tests present in your build plan that generate test results in JUnit test report format.
  3. Ensure that your build creates a Clover report (that is, a clover.xml file). Bamboo will use this Clover report as source. 
  4. Set up Bamboo to read the Clover report (clover.xml file) generated by Clover. To do this:
    1. Ensure the 'Clover output will be produced' check-box is ticked in your plan's build configuration page.
    2. Instruct Bamboo on the location of your 'Clover XML Directory' — where Bamboo will look for the XML report output file from Clover. Please specify file path relative to your plan's root directory (e.g /home/bamboouser/bamboo-home/xml-data/build-dir/MY_PLAN/), i.e. please do not specify an absolute path.

For further details, please see Specifying a Plan's Builder.

Q&A:

Q: I have managed to get Clover statistics displayed in numerical form for each build, but the graphs do not show a history of these statistics?
A: The history of Clover is displayed over time periods (e.g. a day, a week, a month), and the minimum data point is per day. The Clover coverage will not display data that is less than a day old.

Q: Will the Bamboo/Clover integration run on failed builds?
A: Before Bamboo version 1.2.1, Bamboo would only report Clover coverage for successful builds. As of Bamboo 1.2.1, Bamboo will report Clover coverage regardless of the build outcome.

Document generated by Confluence on Mar 02, 2009 18:52