Purpose
Metric shows the ratio of commits that led to broken builds compared to the total amount of commits for specific date. Default time depth is 1 month up to the current date. Percentage revealed by this metric indicates the effectiveness with which quality guards are controlling the code before it is committed. The greater this percentage the worse.
How this metric helps
Metric may help identify build problems as they occur, pointing the source of the error.
How it works
Chart Overview
Chart shows % of commits which led to broken builds per sub-unit day by day. Legend placed on the top of the chart delivers latest value for each configured sub-unit. Sub-units are clickable to display/hide its series on the chart.
Calculation Formula
Here is the example of how metric may be calculated:
total # of all builds | 5 |
---|---|
# of failed builds | 2 |
# of commits in all builds | 15 |
# of commits in failed builds | 3 |
% commits led to broken builds | 3 / 15 = 0.2 = 20% = Amber |
RAG thresholds: Red > 50%, Amber > 10%, otherwise Green.
Data Source
Data for the metric can be retrieved from Jenkins.