hudson.plugins.pmd
Class PmdReporter
java.lang.Object
hudson.maven.MavenReporter
hudson.plugins.analysis.core.HealthAwareReporter<PmdResult>
hudson.plugins.pmd.PmdReporter
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.maven.MavenProjectActionBuilder, hudson.model.Describable<hudson.maven.MavenReporter>, hudson.plugins.analysis.core.HealthDescriptor, Serializable
public class PmdReporter
- extends hudson.plugins.analysis.core.HealthAwareReporter<PmdResult>
Publishes the results of the PMD analysis (maven 2 project type).
- Author:
- Ulli Hafner
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Constructor Summary |
PmdReporter(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 canComputeNew)
Creates a new instance of PmdReporter. |
| Methods inherited from class hudson.plugins.analysis.core.HealthAwareReporter |
canComputeNew, canContinue, end, getCanComputeNew, getCanRunOnFailed, getDefaultEncoding, getHealthy, getMinimumPriority, getModuleName, getTargetPath, getThresholdLimit, getThresholds, getUnHealthy, getUseDeltaValues, postExecute |
| Methods inherited from class hudson.maven.MavenReporter |
enterModule, getAggregatedProjectAction, getDescriptor, getProjectAction, leaveModule, postBuild, preBuild, preExecute, reportGenerated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PmdReporter
@DataBoundConstructor
public PmdReporter(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 canComputeNew)
- Creates a new instance of
PmdReporter.
- Parameters:
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, too
acceptGoal
protected boolean acceptGoal(String goal)
- Specified by:
acceptGoal in class hudson.plugins.analysis.core.HealthAwareReporter<PmdResult>
perform
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
- Specified by:
perform in class hudson.plugins.analysis.core.HealthAwareReporter<PmdResult>
- Throws:
InterruptedException
IOException
createResult
protected PmdResult createResult(hudson.maven.MavenBuild build,
hudson.plugins.analysis.core.ParserResult project)
- Specified by:
createResult in class hudson.plugins.analysis.core.HealthAwareReporter<PmdResult>
createMavenAggregatedReport
protected hudson.maven.MavenAggregatedReport createMavenAggregatedReport(hudson.maven.MavenBuild build,
PmdResult result)
- Specified by:
createMavenAggregatedReport in class hudson.plugins.analysis.core.HealthAwareReporter<PmdResult>
getProjectActions
public List<PmdProjectAction> getProjectActions(hudson.maven.MavenModule module)
- Specified by:
getProjectActions in interface hudson.maven.MavenProjectActionBuilder- Overrides:
getProjectActions in class hudson.maven.MavenReporter
getResultActionClass
protected Class<PmdMavenResultAction> getResultActionClass()
- Specified by:
getResultActionClass in class hudson.plugins.analysis.core.HealthAwareReporter<PmdResult>
Copyright © 2004-2012. All Rights Reserved.