hmmm.. i have some problems/question with this implementation:
> use delta for new warnings:
> If set then the number of new warnings is calculated by subtracting the total number of warnings of the current build from the reference build
I have 9 unstable builds in my history, and 1 very old successful one (Hudson seems to keep the last successful build forever)
Regardless of the changes, the "new warnings" seem always calculated from the old successful build.
So i deleted that one, and now my new warnings dropped to zero; correctly calculating from last unstable build
So is there some priority in getting the reference build?
Whats the definition for reference build? (i expected always the last one as reference)
Is this a bug or a feature i miss to understand?!
Code changed in hudson
User: : drulli
Path:
trunk/hudson/plugins/analysis-collector/pom.xml
trunk/hudson/plugins/analysis-collector/src/main/java/hudson/plugins/analysis/collector/AnalysisResultAction.java
trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/core/AbstractResultAction.java
trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/core/BuildResult.java
trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/core/BuildResultEvaluator.java
trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/core/HealthAwarePublisher.java
trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/core/ResultAction.java
trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/graph/CategoryBuildResultGraph.java
trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/graph/DifferenceGraph.java
trunk/hudson/plugins/analysis-core/src/test/java/hudson/plugins/analysis/core/BuildResultEvaluatorTest.java
trunk/hudson/plugins/analysis-core/src/test/java/hudson/plugins/analysis/graph/Main.java
trunk/hudson/plugins/checkstyle/pom.xml
trunk/hudson/plugins/checkstyle/src/main/java/hudson/plugins/checkstyle/CheckStyleResultAction.java
trunk/hudson/plugins/dry/pom.xml
trunk/hudson/plugins/dry/src/main/java/hudson/plugins/dry/DryResultAction.java
trunk/hudson/plugins/findbugs/plugin/pom.xml
trunk/hudson/plugins/findbugs/plugin/src/main/java/hudson/plugins/findbugs/FindBugsResultAction.java
trunk/hudson/plugins/pmd/pom.xml
trunk/hudson/plugins/pmd/src/main/java/hudson/plugins/pmd/PmdResultAction.java
trunk/hudson/plugins/tasks/pom.xml
trunk/hudson/plugins/tasks/src/main/java/hudson/plugins/tasks/TasksResultAction.java
http://jenkins-ci.org/commit/27904
Log:
JENKINS-5147: Added a first implementation that uses that last successful build as base when computing the new warnings.