-
New Feature
-
Resolution: Fixed
-
Major
-
None
I'd like an option to only consider stable builds when computing the number of allowed warnings. Justification follows.
Consider this scenario, where a job is configured to become unstable if the number checkstyle warnings increase by 5 or more compared to the previous build:
1. The last Jenkins build is stable
2. A developer commits a failing test and 10 fixed checkstyle issues. The failing test makes the build unstable.
3. The developer reverts the commit, thus removing the failing test but increasing the number of checkstyle warnings back to the number of warnings in 1, and above the new limit computed in 2. The build is now unstable because of the checkstyle warnings.
Is there a way to prevent a case like step 3 from failing the build? If not, I'd like the option described above. If you won't have the time to implement this in a near future, I think I could look into it.