|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.plugins.findbugs.FindBugsResultAction
public class FindBugsResultAction
Controls the live cycle of the FindBugs results. This action persists the
results of the FindBugs analysis of a build and displays the results on the
build page. The actual visualization of the results is defined in the
matching summary.jelly file.
Moreover, this class renders the FindBugs result trend.
| Constructor Summary | |
|---|---|
FindBugsResultAction(hudson.model.Build<?,?> owner,
int minimumBugs,
boolean isHealthyReportEnabled,
int healthy,
int unHealthy)
Creates a new instance of FindBugsBuildAction. |
|
| Method Summary | |
|---|---|
void |
doGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for the test result trend. |
void |
doGraphMap(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for the test result trend. |
hudson.model.HealthReport |
getBuildHealth()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getIconFileName()
|
hudson.model.Build<?,?> |
getOwner()
Returns the associated build of this action. |
FindBugsResultAction |
getPreviousResult()
Gets the FindBugs result of the previous build. |
FindBugsResult |
getResult()
Returns the FindBugs result. |
java.lang.Object |
getTarget()
|
java.lang.String |
getUrlName()
|
boolean |
hasPreviousResult()
Returns whether a previous build already did run with FindBugs. |
void |
setResult(FindBugsResult result)
Sets the FindBugs result for this build. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FindBugsResultAction(hudson.model.Build<?,?> owner,
int minimumBugs,
boolean isHealthyReportEnabled,
int healthy,
int unHealthy)
FindBugsBuildAction.
owner - the associated build of this actionminimumBugs - Bug threshold to be reached if a build should be considered as unstable.isHealthyReportEnabled - Determines whether to use the provided healthy thresholds.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 value| Method Detail |
|---|
public hudson.model.Build<?,?> getOwner()
public java.lang.Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic FindBugsResult getResult()
public hudson.model.HealthReport getBuildHealth()
getBuildHealth in interface hudson.model.HealthReportingActionpublic java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic java.lang.String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic java.lang.String getUrlName()
getUrlName in interface hudson.model.Actionpublic FindBugsResultAction getPreviousResult()
java.util.NoSuchElementException - if there is no previous build for this actionpublic boolean hasPreviousResult()
true if a previous build already did run with
FindBugs.public void setResult(FindBugsResult result)
result - the result to set
public void doGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an error in
doGraph(StaplerRequest, StaplerResponse)
public void doGraphMap(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an error in
doGraph(StaplerRequest, StaplerResponse)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||