Class AvgDurationColumn

java.lang.Object
hudson.views.ListViewColumn
org.jenkinsci.plugins.additionalmetrics.AvgDurationColumn
All Implemented Interfaces:
ExtensionPoint, Describable<ListViewColumn>

public class AvgDurationColumn extends ListViewColumn
A Jenkins list view column that displays the average duration of completed builds for a job.
  • Constructor Details

    • AvgDurationColumn

      @DataBoundConstructor public AvgDurationColumn()
      Creates a new average duration column. This constructor is used by Jenkins for data binding.
  • Method Details

    • getAverageDuration

      public Duration getAverageDuration(Job<? extends Job,? extends Run> job)
      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