Class MinDurationColumn

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

public class MinDurationColumn extends ListViewColumn
A Jenkins list view column that displays the shortest running completed build for a job. Shows both the build information and its duration.
  • Constructor Details

    • MinDurationColumn

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

    • getShortestRun

      public RunWithDuration getShortestRun(Job<? extends Job,? extends Run> job)
      Finds and returns the completed build with the shortest duration for the specified job. Only considers builds that have completed (not currently building) and have a positive duration.
      Parameters:
      job - the Jenkins job to find the shortest running build for
      Returns:
      a RunWithDuration containing the shortest running build and its duration, or null if no completed builds with positive duration exist