|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.core.BuildHistory
public class BuildHistory
History of build results of a specific plug-in. The plug-in is identified by
the corresponding ResultAction type.
| Constructor Summary | |
|---|---|
BuildHistory(hudson.model.AbstractBuild<?,?> baseline,
Class<? extends ResultAction<? extends BuildResult>> type)
Creates a new instance of BuildHistory. |
|
| Method Summary | |
|---|---|
ResultAction<? extends BuildResult> |
getBaseline()
Returns the baseline action. |
Collection<FileAnnotation> |
getFixedWarnings(Set<FileAnnotation> annotations)
Returns the fixed warnings as a difference between the warnings of the reference build and the specified collection of warnings. |
AbstractHealthDescriptor |
getHealthDescriptor()
Returns the health descriptor used for the builds. |
Collection<FileAnnotation> |
getNewWarnings(Set<FileAnnotation> annotations)
Returns the new warnings as a difference between the specified collection of warnings and the warnings of the reference build. |
BuildResult |
getPreviousResult()
Returns the previous build result. |
AnnotationContainer |
getReferenceAnnotations()
Returns the annotations of the reference build. |
hudson.model.AbstractBuild<?,?> |
getReferenceBuild()
Returns the reference build or null if there is no such
build. |
ResultAction<? extends BuildResult> |
getResultAction(hudson.model.AbstractBuild<?,?> build)
Returns the result action of the specified build that should be used to compute the history. |
Calendar |
getTimestamp()
Returns the time of the baseline build. |
boolean |
hasPreviousResult()
Returns whether a previous build result exists. |
boolean |
hasReferenceBuild()
Returns whether a reference build is available to compare the results with. |
boolean |
isEmpty()
Returns whether there is no history available, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuildHistory(hudson.model.AbstractBuild<?,?> baseline,
Class<? extends ResultAction<? extends BuildResult>> type)
BuildHistory.
baseline - the build to start the history fromtype - type of the action that contains the build results| Method Detail |
|---|
public Calendar getTimestamp()
public AnnotationContainer getReferenceAnnotations()
@CheckForNull public ResultAction<? extends BuildResult> getResultAction(hudson.model.AbstractBuild<?,?> build)
build - the build
@CheckForNull public hudson.model.AbstractBuild<?,?> getReferenceBuild()
null if there is no such
build.
hasReferenceBuild()public boolean hasReferenceBuild()
true if a reference build exists, false
otherwisepublic boolean hasPreviousResult()
true if a previous build result exists.isEmpty()public boolean isEmpty()
true if there is no previous build availablehasPreviousResult()public ResultAction<? extends BuildResult> getBaseline()
NoSuchElementException - if there is no previous resulthasPreviousResult()public BuildResult getPreviousResult()
NoSuchElementException - if there is no previous resulthasPreviousResult()public Collection<FileAnnotation> getNewWarnings(Set<FileAnnotation> annotations)
annotations - the warnings in the current build
public Collection<FileAnnotation> getFixedWarnings(Set<FileAnnotation> annotations)
annotations - the warnings in the current build
public AbstractHealthDescriptor getHealthDescriptor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||