hudson.plugins.tasks
Class TasksReporter

java.lang.Object
  extended by hudson.maven.MavenReporter
      extended by hudson.plugins.tasks.TasksReporter
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.maven.MavenReporter>, java.io.Serializable

public class TasksReporter
extends hudson.maven.MavenReporter

See Also:
Serialized Form

Field Summary
static TasksReporterDescriptor TASK_SCANNER_DESCRIPTOR
          Descriptor of this publisher.
 
Constructor Summary
TasksReporter(java.lang.String pattern, java.lang.String threshold, java.lang.String healthy, java.lang.String unHealthy, java.lang.String high, java.lang.String normal, java.lang.String low)
          Creates a new instance of TaskScannerPublisher.
 
Method Summary
 hudson.maven.MavenReporterDescriptor getDescriptor()
          
 java.lang.String getHealthy()
          Returns the healthy threshold.
 java.lang.String getHigh()
          Returns the high priority task identifiers.
 java.lang.String getLow()
          Returns the low priority task identifiers.
 java.lang.String getNormal()
          Returns the normal priority task identifiers.
 java.lang.String getPattern()
          Returns the Ant file-set pattern to the workspace files.
 hudson.model.Action getProjectAction(hudson.maven.MavenModule module)
          
 java.lang.String getThreshold()
          Returns the Bug threshold to be reached if a build should be considered as unstable.
 java.lang.String getUnHealthy()
          Returns the unhealthy threshold.
 boolean postExecute(hudson.maven.MavenBuildProxy build, org.apache.maven.project.MavenProject pom, hudson.maven.MojoInfo mojo, hudson.model.BuildListener listener, java.lang.Throwable error)
          
 
Methods inherited from class hudson.maven.MavenReporter
end, enterModule, leaveModule, postBuild, preBuild, preExecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASK_SCANNER_DESCRIPTOR

public static final TasksReporterDescriptor TASK_SCANNER_DESCRIPTOR
Descriptor of this publisher.

Constructor Detail

TasksReporter

public TasksReporter(java.lang.String pattern,
                     java.lang.String threshold,
                     java.lang.String healthy,
                     java.lang.String unHealthy,
                     java.lang.String high,
                     java.lang.String normal,
                     java.lang.String low)
Creates a new instance of TaskScannerPublisher.

Parameters:
pattern - Ant file-set pattern of files to scan for open tasks in
threshold - Tasks threshold to be reached if a build should be considered as unstable.
healthy - Report health as 100% when the number of open tasks is less than this value
unHealthy - Report health as 0% when the number of open tasks is greater than this value
high - tag identifiers indicating high priority
normal - tag identifiers indicating normal priority
low - tag identifiers indicating low priority
Method Detail

getThreshold

public java.lang.String getThreshold()
Returns the Bug threshold to be reached if a build should be considered as unstable.

Returns:
the bug threshold

getHealthy

public java.lang.String getHealthy()
Returns the healthy threshold.

Returns:
the healthy

getUnHealthy

public java.lang.String getUnHealthy()
Returns the unhealthy threshold.

Returns:
the unHealthy

getPattern

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

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

getHigh

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

Returns:
the high priority task identifiers

getNormal

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

Returns:
the normal priority task identifiers

getLow

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

Returns:
the low priority task identifiers

postExecute

public boolean postExecute(hudson.maven.MavenBuildProxy build,
                           org.apache.maven.project.MavenProject pom,
                           hudson.maven.MojoInfo mojo,
                           hudson.model.BuildListener listener,
                           java.lang.Throwable error)
                    throws java.lang.InterruptedException,
                           java.io.IOException

Overrides:
postExecute in class hudson.maven.MavenReporter
Throws:
java.lang.InterruptedException
java.io.IOException

getProjectAction

public hudson.model.Action getProjectAction(hudson.maven.MavenModule module)

Overrides:
getProjectAction in class hudson.maven.MavenReporter

getDescriptor

public hudson.maven.MavenReporterDescriptor getDescriptor()

Specified by:
getDescriptor in interface hudson.model.Describable<hudson.maven.MavenReporter>
Overrides:
getDescriptor in class hudson.maven.MavenReporter


Copyright © 2008. All Rights Reserved.