Bamboo 4.2 : Enabling the Clover plugin

This page contains instructions on enabling and configuring Atlassian's Clover plugin for a job in Bamboo.

When Bamboo is integrated with Clover, you can:

  • view code-coverage details (i.e. the percentage of code covered by tests) for each build result
  • view code-coverage trends for a job over a period of time
  • view the code-coverage summary for the job.

To enable the Clover plugin on a job:

  1. Navigate to the desired job, as described on Configuring jobs.
  2. Choose Actions > Configure Job.
  3. Click Miscellaneous.
  4. Select Use Clover to collect Code Coverage for this build and complete the following settings:

(warning) The information on this page does not apply to Bamboo OnDemand.

SettingDescription
Automatically integrate Clover into this buildYou will need to provide a Clover license (evaluation licenses are available), unless this has been configured globally in the Administration panel (Administration > Plugins > Clover Plugin).
Generate a Clover Historical ReportDisplays the current coverage results compared with previous Clover code coverage reports.
Generate a JSON reportProvides the Clover results in a format ready for embedding into applications or external report views.
Use plan-defined Clover license keyOverride the global Clover license for this particular plan.
Clover is already integrated into this build

Use this option when you already have Clover-for-Ant or Clover-for-Maven configured to generate a report.

Clover XML Location

Specify the location where Bamboo will look for the XML report file from Clover. Please specify the file path relative to your plan's root directory (e.g /home/bamboouser/bamboo-home/xml-data/build-dir/MY_PLAN/), i.e. do not specify an absolute path.

 target/site/clover/clover.xml 

Screenshot: Enabling Clover for a job