Class AvgDurationColumn
java.lang.Object
hudson.views.ListViewColumn
org.jenkinsci.plugins.additionalmetrics.AvgDurationColumn
- All Implemented Interfaces:
ExtensionPoint,Describable<ListViewColumn>
A Jenkins list view column that displays the average duration of completed builds for a job.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAverageDuration(Job<? extends Job, ? extends Run> job) Calculates and returns the average duration of completed builds for the specified job.Methods inherited from class hudson.views.ListViewColumn
all, createDefaultInitialColumnList, createDefaultInitialColumnList, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
-
Constructor Details
-
AvgDurationColumn
@DataBoundConstructor public AvgDurationColumn()Creates a new average duration column. This constructor is used by Jenkins for data binding.
-
-
Method Details
-
getAverageDuration
Calculates and returns the average duration of completed builds for the specified job. Only considers builds that have completed (not currently building).- Parameters:
job- the Jenkins job to calculate the average duration for- Returns:
- the average duration of completed builds, or null if no completed builds exist
-