org.jenkinsci.plugins.android_lint
Class LintReporter

java.lang.Object
  extended by hudson.maven.MavenReporter
      extended by hudson.plugins.analysis.core.HealthAwareReporter<LintResult>
          extended by org.jenkinsci.plugins.android_lint.LintReporter
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.maven.MavenProjectActionBuilder, hudson.model.Describable<hudson.maven.MavenReporter>, hudson.plugins.analysis.core.HealthDescriptor, Serializable

public class LintReporter
extends hudson.plugins.analysis.core.HealthAwareReporter<LintResult>

Publishes the results of parsing an Android lint file (maven 2 project type).

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
LintReporter(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, String pattern)
          Constructor.
 
Method Summary
protected  boolean acceptGoal(String goal)
           
protected  hudson.maven.MavenAggregatedReport createMavenAggregatedReport(hudson.maven.MavenBuild build, LintResult result)
           
protected  LintResult createResult(hudson.maven.MavenBuild build, hudson.plugins.analysis.core.ParserResult project)
           
 String getPattern()
          Returns the Ant fileset pattern of files to work with.
 List<LintProjectAction> getProjectActions(hudson.maven.MavenModule module)
           
protected  Class<LintMavenResultAction> getResultActionClass()
           
 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)
           
 
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
 

Constructor Detail

LintReporter

@DataBoundConstructor
public LintReporter(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,
                                         String pattern)
Constructor.

Parameters:
healthy - Report health as 100% when the number of warnings is less than this value.
unhealthy - Report health as 0% when the number of warnings is greater than this value.
thresholdLimit - Determines which warning priorities should be considered when evaluating the build stability and health.
useDeltaValues - Determines whether the absolute annotations delta or the actual annotations set difference should be used to evaluate the build stability.
unstableTotalAll - Annotation threshold.
unstableTotalHigh - Annotation threshold.
unstableTotalNormal - Annotation threshold.
unstableTotalLow - Annotation threshold.
unstableNewAll - Annotation threshold.
unstableNewHigh - Annotation threshold.
unstableNewNormal - Annotation threshold.
unstableNewLow - Annotation threshold.
failedTotalAll - Annotation threshold.
failedTotalHigh - Annotation threshold.
failedTotalNormal - Annotation threshold.
failedTotalLow - Annotation threshold.
failedNewAll - Annotation threshold.
failedNewHigh - Annotation threshold.
failedNewNormal - Annotation threshold.
failedNewLow - Annotation threshold.
canRunOnFailed - Determines whether the plugin can also run for failed builds.
pattern - Ant fileset pattern used to scan for Lint files.
Method Detail

getPattern

public String getPattern()
Returns the Ant fileset pattern of files to work with.

Returns:
Ant fileset pattern of files to work with.

acceptGoal

protected boolean acceptGoal(String goal)
Specified by:
acceptGoal in class hudson.plugins.analysis.core.HealthAwareReporter<LintResult>

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<LintResult>
Throws:
InterruptedException
IOException

createResult

protected LintResult createResult(hudson.maven.MavenBuild build,
                                  hudson.plugins.analysis.core.ParserResult project)
Specified by:
createResult in class hudson.plugins.analysis.core.HealthAwareReporter<LintResult>

createMavenAggregatedReport

protected hudson.maven.MavenAggregatedReport createMavenAggregatedReport(hudson.maven.MavenBuild build,
                                                                         LintResult result)
Specified by:
createMavenAggregatedReport in class hudson.plugins.analysis.core.HealthAwareReporter<LintResult>

getProjectActions

public List<LintProjectAction> getProjectActions(hudson.maven.MavenModule module)
Specified by:
getProjectActions in interface hudson.maven.MavenProjectActionBuilder
Overrides:
getProjectActions in class hudson.maven.MavenReporter

getResultActionClass

protected Class<LintMavenResultAction> getResultActionClass()
Specified by:
getResultActionClass in class hudson.plugins.analysis.core.HealthAwareReporter<LintResult>


Copyright © 2004-2012. All Rights Reserved.