Run run = job.getLastSuccessfulBuild();
if (run == null) {
continue;
}
CoberturaBuildAction rbb = run
.getAction(CoberturaBuildAction.class);
if (rbb == null) {
continue;
}
CoverageResult result = rbb.getResult();
Set<CoverageMetric> metrics = result.getMetrics();
for (CoverageMetric metric : metrics) {
if (totalRatioMap.get(metric) == null) {
totalRatioMap.put(metric, result.getCoverage(metric));