hudson.plugins.findbugs
Class FindBugsReporter

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

public class FindBugsReporter
extends hudson.maven.MavenReporter

See Also:
Serialized Form

Field Summary
static FindBugsReporterDescriptor FINDBUGS_SCANNER_DESCRIPTOR
          Descriptor of this publisher.
 
Constructor Summary
FindBugsReporter(java.lang.String pattern, java.lang.String threshold, java.lang.String healthy, java.lang.String unHealthy)
          Creates a new instance of FindBugsReporter.
 
Method Summary
 hudson.maven.MavenReporterDescriptor getDescriptor()
          
 java.lang.String getHealthy()
          Returns the healthy threshold.
 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

FINDBUGS_SCANNER_DESCRIPTOR

public static final FindBugsReporterDescriptor FINDBUGS_SCANNER_DESCRIPTOR
Descriptor of this publisher.

Constructor Detail

FindBugsReporter

public FindBugsReporter(java.lang.String pattern,
                        java.lang.String threshold,
                        java.lang.String healthy,
                        java.lang.String unHealthy)
Creates a new instance of FindBugsReporter.

Parameters:
pattern - Ant file-set pattern to scan for FindBugs files
threshold - Bug threshold to be reached if a build should be considered as unstable.
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
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.

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.