public class FindBugsReporter extends hudson.plugins.analysis.core.HealthAwareReporter<FindBugsResult>
| Constructor and Description |
|---|
FindBugsReporter(String healthy,
String unHealthy,
String thresholdLimit,
boolean useDeltaValues,
String unstableTotalAll,
String unstableTotalHigh,
String unstableTotalNormal,
String unstableTotalLow,
String unstableNewAll,
String unstableNewHigh,
String unstableNewNormal,
String unstableNewLow,
String failedTotalAll,
String failedTotalHigh,
String failedTotalNormal,
String failedTotalLow,
String failedNewAll,
String failedNewHigh,
String failedNewNormal,
String failedNewLow,
boolean canRunOnFailed,
boolean usePreviousBuildAsReference,
boolean useStableBuildAsReference,
boolean isRankActivated,
boolean canComputeNew,
String excludePattern,
String includePattern)
Creates a new instance of
FindBugsReporter. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptGoal(String goal) |
protected hudson.maven.MavenAggregatedReport |
createMavenAggregatedReport(hudson.maven.MavenBuild build,
FindBugsResult result) |
protected FindBugsResult |
createResult(hudson.maven.MavenBuild build,
hudson.plugins.analysis.core.ParserResult project) |
String |
getExcludePattern()
RegEx patterns of files to exclude from the report.
|
String |
getIncludePattern()
Returns the RegEx patterns to include in the report.
|
List<FindBugsProjectAction> |
getProjectActions(hudson.maven.MavenModule module) |
protected Class<FindBugsMavenResultAction> |
getResultActionClass() |
boolean |
isRankActivated()
Returns whether to use the rank when evaluation the priority.
|
hudson.plugins.analysis.core.ParserResult |
perform(hudson.maven.MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
hudson.maven.MojoInfo mojo,
hudson.plugins.analysis.util.PluginLogger logger) |
boolean |
preExecute(hudson.maven.MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
hudson.maven.MojoInfo mojo,
hudson.model.BuildListener listener) |
canComputeNew, canContinue, end, getCanComputeNew, getCanRunOnFailed, getDefaultEncoding, getDescriptor, getHealthy, getMinimumPriority, getModuleName, getTargetPath, getThresholdLimit, getThresholds, getUnHealthy, getUseDeltaValues, getUsePreviousBuildAsReference, getUsePreviousBuildAsStable, getUseStableBuildAsReference, postExecute, useOnlyStableBuildsAsReference, usePreviousBuildAsReference, usePreviousBuildAsStable@DataBoundConstructor public FindBugsReporter(String healthy, String unHealthy, String thresholdLimit, boolean useDeltaValues, String unstableTotalAll, String unstableTotalHigh, String unstableTotalNormal, String unstableTotalLow, String unstableNewAll, String unstableNewHigh, String unstableNewNormal, String unstableNewLow, String failedTotalAll, String failedTotalHigh, String failedTotalNormal, String failedTotalLow, String failedNewAll, String failedNewHigh, String failedNewNormal, String failedNewLow, boolean canRunOnFailed, boolean usePreviousBuildAsReference, boolean useStableBuildAsReference, boolean isRankActivated, boolean canComputeNew, String excludePattern, String includePattern)
FindBugsReporter.healthy - Report health as 100% when the number of warnings is less than
this valueunHealthy - Report health as 0% when the number of warnings is greater
than this valuethresholdLimit - determines which warning priorities should be considered when
evaluating the build stability and healthuseDeltaValues - determines whether the absolute annotations delta or the
actual annotations set difference should be used to evaluate
the build stabilityunstableTotalAll - annotation thresholdunstableTotalHigh - annotation thresholdunstableTotalNormal - annotation thresholdunstableTotalLow - annotation thresholdunstableNewAll - annotation thresholdunstableNewHigh - annotation thresholdunstableNewNormal - annotation thresholdunstableNewLow - annotation thresholdfailedTotalAll - annotation thresholdfailedTotalHigh - annotation thresholdfailedTotalNormal - annotation thresholdfailedTotalLow - annotation thresholdfailedNewAll - annotation thresholdfailedNewHigh - annotation thresholdfailedNewNormal - annotation thresholdfailedNewLow - annotation thresholdcanRunOnFailed - determines whether the plug-in can run for failed builds, toousePreviousBuildAsReference - determines whether to always use the previous build as the reference builduseStableBuildAsReference - determines whether only stable builds should be used as reference builds or notisRankActivated - determines whether to use the rank when evaluation the
prioritycanComputeNew - determines whether new warnings should be computed (with
respect to baseline)excludePattern - RegEx patterns of files to exclude from the reportincludePattern - RegEx patterns of files to include in the reportpublic boolean isRankActivated()
true if the rank should uses when evaluation the
priority, false if the FindBugs priority should be
usedpublic String getExcludePattern()
public String getIncludePattern()
public boolean preExecute(hudson.maven.MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
hudson.maven.MojoInfo mojo,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
preExecute in class hudson.maven.MavenReporterInterruptedExceptionIOExceptionprotected boolean acceptGoal(String goal)
acceptGoal in class hudson.plugins.analysis.core.HealthAwareReporter<FindBugsResult>public hudson.plugins.analysis.core.ParserResult perform(hudson.maven.MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
hudson.maven.MojoInfo mojo,
hudson.plugins.analysis.util.PluginLogger logger)
throws InterruptedException,
IOException
perform in class hudson.plugins.analysis.core.HealthAwareReporter<FindBugsResult>InterruptedExceptionIOExceptionprotected FindBugsResult createResult(hudson.maven.MavenBuild build, hudson.plugins.analysis.core.ParserResult project)
createResult in class hudson.plugins.analysis.core.HealthAwareReporter<FindBugsResult>protected hudson.maven.MavenAggregatedReport createMavenAggregatedReport(hudson.maven.MavenBuild build,
FindBugsResult result)
createMavenAggregatedReport in class hudson.plugins.analysis.core.HealthAwareReporter<FindBugsResult>public List<FindBugsProjectAction> getProjectActions(hudson.maven.MavenModule module)
getProjectActions in interface hudson.maven.MavenProjectActionBuildergetProjectActions in class hudson.maven.MavenReporterprotected Class<FindBugsMavenResultAction> getResultActionClass()
getResultActionClass in class hudson.plugins.analysis.core.HealthAwareReporter<FindBugsResult>Copyright © 2016–2018. All rights reserved.