How can I download the report or extract coverage metrics?

Q: Can I save the Clover report locally, or extract the coverage metrics from it programmatically?

Generate the XML report and read it with XPath. The XML report is designed for programmatic consumption and contains the raw counts, so you can compute any metric - at any precision - yourself.

/coverage/project/metrics[@statements]
/coverage/project/metrics[@coveredstatements]
/coverage/project/package[name='com.foo.bar']/metrics[@statements]

See Extracting Coverage Data programmatically for a worked Java example, and How are the Clover coverage percentages calculated? for the meaning of the <metrics> attributes.

XML reports can be produced by the <clover-report> or <clover-historypoint> Ant tasks, the clover:clover Maven goal, or the XmlReporter command line tool.

Keeping reports from a CI server

If you view Clover reports through a CI server and want to keep a copy, publish the generated HTML report directory and clover.xml as build artifacts. See also How to keep Clover reports between builds?.