}
private String registerResults(final ParserResult result, final MavenBuild mavenBuild) {
T buildResult = createResult(mavenBuild, result);
StringPluginLogger pluginLogger = new StringPluginLogger(pluginName);
if (new NullHealthDescriptor(this).isThresholdEnabled()) {
String baseUrl = getDescriptor().getPluginResultUrlName();
buildResult.evaluateStatus(thresholds, useDeltaValues, canComputeNew(), pluginLogger, baseUrl);
}
mavenBuild.getActions().add(createMavenAggregatedReport(mavenBuild, buildResult));
mavenBuild.registerAsProjectAction(HealthAwareReporter.this);
AbstractBuild<?, ?> referenceBuild = buildResult.getHistory().getReferenceBuild();
if (referenceBuild != null) {
pluginLogger.log("Computing warning deltas based on reference build " + referenceBuild.getDisplayName());
}
return pluginLogger.toString();
}