|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.core.BuildResultEvaluator
public class BuildResultEvaluator
Checks if the number of annotations exceeds a given threshold value.
| Constructor Summary | |
|---|---|
BuildResultEvaluator(String url)
Creates a new instance of BuildResultEvaluator. |
|
| Method Summary | |
|---|---|
hudson.model.Result |
evaluateBuildResult(PluginLogger logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations)
Deprecated. use evaluateBuildResult(StringBuilder, Thresholds, Collection) |
hudson.model.Result |
evaluateBuildResult(PluginLogger logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations,
Collection<FileAnnotation> newAnnotations)
Deprecated. use evaluateBuildResult(StringBuilder, Thresholds, Collection, Collection) |
hudson.model.Result |
evaluateBuildResult(PluginLogger logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations,
int delta,
int highDelta,
int normalDelta,
int lowDelta)
Deprecated. use evaluateBuildResult(StringBuilder, Thresholds, Collection, int, int, int, int) |
hudson.model.Result |
evaluateBuildResult(StringBuilder logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations)
Evaluates the build result. |
hudson.model.Result |
evaluateBuildResult(StringBuilder logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations,
Collection<FileAnnotation> newAnnotations)
Evaluates the build result. |
hudson.model.Result |
evaluateBuildResult(StringBuilder logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations,
int delta,
int highDelta,
int normalDelta,
int lowDelta)
Evaluates the build result. |
boolean |
isAnnotationCountExceeded(int annotationCount,
String annotationThreshold)
Returns whether the new annotation count exceeds the user defined threshold and the build should be set to unstable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuildResultEvaluator(String url)
BuildResultEvaluator.
url - the url of the build results| Method Detail |
|---|
public hudson.model.Result evaluateBuildResult(StringBuilder logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations)
logger - logs the resultst - the thresholdsallAnnotations - all annotations
public hudson.model.Result evaluateBuildResult(StringBuilder logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations,
int delta,
int highDelta,
int normalDelta,
int lowDelta)
logger - logs the resultst - the thresholdsdelta - delta between this build and reference buildhighDelta - delta between this build and reference build (priority high)normalDelta - delta between this build and reference build (priority normal)lowDelta - delta between this build and reference build (priority low)allAnnotations - all annotations
public hudson.model.Result evaluateBuildResult(StringBuilder logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations,
Collection<FileAnnotation> newAnnotations)
logger - logs the resultst - the thresholdsallAnnotations - all annotationsnewAnnotations - the new annotations
public boolean isAnnotationCountExceeded(int annotationCount,
String annotationThreshold)
annotationCount - the number of new annotationsannotationThreshold - string representation of the threshold value
true if the build should be set to unstable
@Deprecated
public hudson.model.Result evaluateBuildResult(PluginLogger logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations)
evaluateBuildResult(StringBuilder, Thresholds, Collection)
logger - logs the resultst - the thresholdsallAnnotations - all annotations
@Deprecated
public hudson.model.Result evaluateBuildResult(PluginLogger logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations,
int delta,
int highDelta,
int normalDelta,
int lowDelta)
evaluateBuildResult(StringBuilder, Thresholds, Collection, int, int, int, int)
logger - logs the resultst - the thresholdsdelta - delta between this build and reference buildhighDelta - delta between this build and reference build (priority high)normalDelta - delta between this build and reference build (priority normal)lowDelta - delta between this build and reference build (priority low)allAnnotations - all annotations
@Deprecated
public hudson.model.Result evaluateBuildResult(PluginLogger logger,
Thresholds t,
Collection<? extends FileAnnotation> allAnnotations,
Collection<FileAnnotation> newAnnotations)
evaluateBuildResult(StringBuilder, Thresholds, Collection, Collection)
logger - logs the resultst - the thresholdsallAnnotations - all annotationsnewAnnotations - the new annotations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||