hudson.plugins.tasks
Class TasksReporter

java.lang.Object
  extended by hudson.maven.MavenReporter
      extended by hudson.plugins.analysis.core.HealthAwareReporter<TasksResult>
          extended by hudson.plugins.tasks.TasksReporter
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.maven.MavenProjectActionBuilder, hudson.model.Describable<hudson.maven.MavenReporter>, hudson.plugins.analysis.core.HealthDescriptor, Serializable

public class TasksReporter
extends hudson.plugins.analysis.core.HealthAwareReporter<TasksResult>

Publishes the results of the task scanner (maven 2 project type).

Author:
Ulli Hafner
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
TasksReporter(String pattern, String excludePattern, 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, String high, String normal, String low, boolean ignoreCase, boolean canRunOnFailed, boolean canComputeNew)
          Creates a new instance of TasksReporter.
 
Method Summary
protected  boolean acceptGoal(String goal)
           
protected  hudson.maven.MavenAggregatedReport createMavenAggregatedReport(hudson.maven.MavenBuild build, TasksResult result)
           
protected  TasksResult createResult(hudson.maven.MavenBuild build, hudson.plugins.analysis.core.ParserResult project)
           
 String getExcludePattern()
          Returns the Ant file-set pattern of files to exclude from work.
 String getHigh()
          Returns the high priority task identifiers.
 boolean getIgnoreCase()
          Returns whether case should be ignored during the scanning.
 String getLow()
          Returns the low priority task identifiers.
 String getNormal()
          Returns the normal priority task identifiers.
 String getPattern()
          Returns the Ant file-set pattern to the workspace files.
 List<TasksProjectAction> getProjectActions(hudson.maven.MavenModule module)
           
protected  Class<TasksMavenResultAction> getResultActionClass()
           
 TasksParserResult 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, getDescriptor, getHealthy, getMinimumPriority, getModuleName, getTargetPath, getThresholdLimit, getThresholds, getUnHealthy, getUseDeltaValues, postExecute
 
Methods inherited from class hudson.maven.MavenReporter
enterModule, getAggregatedProjectAction, 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

TasksReporter

@DataBoundConstructor
public TasksReporter(String pattern,
                                          String excludePattern,
                                          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,
                                          String high,
                                          String normal,
                                          String low,
                                          boolean ignoreCase,
                                          boolean canRunOnFailed,
                                          boolean canComputeNew)
Creates a new instance of TasksReporter.

Parameters:
pattern - Ant file-set pattern of files to scan for open tasks in
excludePattern - Ant file-set pattern of files to exclude from scan
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
high - tag identifiers indicating high priority
normal - tag identifiers indicating normal priority
low - tag identifiers indicating low priority
ignoreCase - if case should be ignored during matching
canRunOnFailed - determines whether the plug-in can run for failed builds, too
Method Detail

getPattern

public String getPattern()
Returns the Ant file-set pattern to the workspace files.

Returns:
ant file-set pattern to the workspace files.

getExcludePattern

public String getExcludePattern()
Returns the Ant file-set pattern of files to exclude from work.

Returns:
Ant file-set pattern of files to exclude from work.

getHigh

public String getHigh()
Returns the high priority task identifiers.

Returns:
the high priority task identifiers

getNormal

public String getNormal()
Returns the normal priority task identifiers.

Returns:
the normal priority task identifiers

getLow

public String getLow()
Returns the low priority task identifiers.

Returns:
the low priority task identifiers

getIgnoreCase

public boolean getIgnoreCase()
Returns whether case should be ignored during the scanning.

Returns:
true if case should be ignored during the scanning

acceptGoal

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

perform

public TasksParserResult 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<TasksResult>
Throws:
InterruptedException
IOException

createResult

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

createMavenAggregatedReport

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

getProjectActions

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

getResultActionClass

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


Copyright © 2004-2012 Hudson. All Rights Reserved.