-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.107.1 LTS
-
-
5.0.0-beta2
Jenkins uses a trend graph to display things like failed unit tests or compilation warnings as a function of build number. Recommend an option to suppress only the first build OR to limit the height of the y-axis.
Potential workflow
- create a copy of a Jenkins job for your particular branch
- Build the branch without changes. This gives a baseline for the # of warnings in the code (it has very old code, so there are a LOT)
- The branch then automatically builds daily. New warnings introduced by the developer show up in the Trend Graph.
The Trend Graph is configured to show only new or fixed warnings.
The problem is that the 1st build introduces a ton of "new" warnings. This pushes the +Y-axis max value to >1000. Any warnings fixed/introduced after that are not visible.
Solution
If we could somehow suppress showing just that first build, while still showing all subsequent builds, this would be fixed. Alternatively, if the +Y-axis could be limited to show numbers from 0-100, this would be fixed.
The first option may be easier to implement. For people who want existing functionality, you could add a checkbox in "Configure the trend graph":
Option: Suppress reference build
Description: If set warnings for the reference build are not displayed as 'new' for the graph type 'Distribution of new and fixed warnings'.
Or you could change the default and make the current behavior optional, which probably makes more sense:
Option: Display reference build