Class FailureRateColumn
java.lang.Object
hudson.views.ListViewColumn
org.jenkinsci.plugins.additionalmetrics.FailureRateColumn
- All Implemented Interfaces:
ExtensionPoint,Describable<ListViewColumn>
A Jenkins list view column that displays the failure rate of completed builds for a job.
The failure rate is calculated as the percentage of completed builds that did not succeed.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFailureRate(Job<? extends Job, ? extends Run> job) Calculates and returns the failure rate of completed builds for the specified job.Methods inherited from class hudson.views.ListViewColumn
all, createDefaultInitialColumnList, createDefaultInitialColumnList, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
-
Constructor Details
-
FailureRateColumn
@DataBoundConstructor public FailureRateColumn()Creates a new failure rate column. This constructor is used by Jenkins for data binding.
-
-
Method Details
-
getFailureRate
Calculates and returns the failure rate of completed builds for the specified job. The failure rate includes all non-successful builds (failed, unstable, aborted, etc.). Only considers builds that have completed (not currently building).- Parameters:
job- the Jenkins job to calculate the failure rate for- Returns:
- the failure rate as a Rate object, or null if no completed builds exist
-