jenkinsci/jenkins — pull request #313 by kutzi (2011-11-18 09:11:13+00:00)
Title: Refactored Run#getBuildStatusSummary and fixed some inconsistencies in 'isWorse'

There has been some unfortunate code duplication between stuff which did something failure similar in ResultTrend and Run#getBuildStatusSummary.

Also there has been what I would call inconsistencies in the inWorse handling of getBuildStatusSummary.
Some of them were IMO clear bugs, e.g. a build without tests which became unstable (e.g. because of the warnings plugin) wasn't determined as isWorse.
On the other hand, a build which became UNSTABLE after a failure could be determined as 'isWorse'

Some others are not so clear errors resp. debatable. E.g. SUCCESS builds after ABORTED/NOT_BUILD builds are now not anymore declared as 'back to normal'