
hudson.plugins.findbugs.FindBugsResultAction Maven / Gradle / Ivy
package hudson.plugins.findbugs;
import hudson.model.AbstractBuild;
import hudson.plugins.analysis.core.HealthDescriptor;
import hudson.plugins.analysis.core.PluginDescriptor;
import hudson.plugins.analysis.core.AbstractResultAction;
/**
* Controls the live cycle of the FindBugs results. This action persists the
* results of the FindBugs analysis of a build and displays the results on the
* build page. The actual visualization of the results is defined in the
* matching summary.jelly
file.
*
* Moreover, this class renders the FindBugs result trend.
*
*
* @author Ulli Hafner
*/
public class FindBugsResultAction extends AbstractResultAction {
/**
* Creates a new instance of {@link FindBugsResultAction}.
*
* @param owner
* the associated build of this action
* @param healthDescriptor
* health descriptor to use
* @param result
* the result in this build
*/
public FindBugsResultAction(final AbstractBuild, ?> owner, final HealthDescriptor healthDescriptor, final FindBugsResult result) {
super(owner, new FindBugsHealthDescriptor(healthDescriptor), result);
}
/** {@inheritDoc} */
public String getDisplayName() {
return Messages.FindBugs_ProjectAction_Name();
}
@Override
protected PluginDescriptor getDescriptor() {
return new FindBugsDescriptor();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy