|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.tasks.Publisher
hudson.plugins.findbugs.FindBugsPublisher
public class FindBugsPublisher
Publishes the results of the FindBugs analysis.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
|---|
hudson.tasks.BuildStep.PublisherList |
| Field Summary | |
|---|---|
static FindBugsDescriptor |
FIND_BUGS_DESCRIPTOR
Descriptor of this publisher. |
| Fields inherited from interface hudson.tasks.BuildStep |
|---|
BUILDERS, PUBLISHERS |
| Constructor Summary | |
|---|---|
FindBugsPublisher(java.lang.String pattern,
java.lang.String threshold,
java.lang.String healthy,
java.lang.String unHealthy)
Creates a new instance of FindBugsPublisher. |
|
| Method Summary | |
|---|---|
hudson.model.Descriptor<hudson.tasks.Publisher> |
getDescriptor()
|
java.lang.String |
getHealthy()
Returns the healthy threshold. |
java.lang.String |
getPattern()
Returns the Ant file-set pattern to FindBugs XML files. |
hudson.model.Action |
getProjectAction(hudson.model.Project project)
|
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 |
perform(hudson.model.Build<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Scans the workspace, collects all data files and copies these files to the build results folder. |
| Methods inherited from class hudson.tasks.Publisher |
|---|
prebuild |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FindBugsDescriptor FIND_BUGS_DESCRIPTOR
| Constructor Detail |
|---|
public FindBugsPublisher(java.lang.String pattern,
java.lang.String threshold,
java.lang.String healthy,
java.lang.String unHealthy)
FindBugsPublisher.
pattern - Ant file-set pattern to scan for FindBugs filesthreshold - 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 valueunHealthy - Report health as 0% when the number of warnings is greater
than this value| Method Detail |
|---|
public hudson.model.Action getProjectAction(hudson.model.Project project)
getProjectAction in interface hudson.tasks.BuildStepgetProjectAction in class hudson.tasks.Publisherpublic java.lang.String getThreshold()
public java.lang.String getHealthy()
public java.lang.String getUnHealthy()
public java.lang.String getPattern()
public boolean perform(hudson.model.Build<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.lang.InterruptedException,
java.io.IOException
threshold.
build - the buildlauncher - the launcherlistener - the build listener
java.io.IOException - if the files could not be copied
java.lang.InterruptedException - if user cancels the operationpublic hudson.model.Descriptor<hudson.tasks.Publisher> getDescriptor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||