Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67039

Add a "Last Duration" column, which shows the last duration, regardless of state

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • extra-columns-plugin
    • None
    • Jenkins 2.303.2
      extra-columns plugin 1.24

      Jenkins core supplies a column "Last Duration" for "List view".

      Unfortunately, this actually shows the duration of the last successful build, without a clear indication of this.

      There is a report of this for the Jenkins core:
      https://issues.jenkins.io/browse/JENKINS-9145
      According to the comments there, it doesn't look, like this will be changed.
      Another way to solve the problem, would be a column via extra-columns-plugin, supplying this type. (I just don't have a good name for the column right away "real last completed duration" ???

          [JENKINS-67039] Add a "Last Duration" column, which shows the last duration, regardless of state

          Fred G added a comment -

          For clarification, the "Last Duration" column shows the duration of the last successful build, unless there is no successful build. Then it shows the duration of the last failed build.

          See https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/hudson/views/LastDurationColumn/column.jelly#L27

          I understand that it is still confusing and not immediately clear by the name of the column.

           

          I would recommend to modify the existing BuildDuration column in the extra-columns plugin  to show the duration of the last build.

          I don't have time to actively work on this feature request, but I'd be happy to review a PR. 

           

          Fred G added a comment - For clarification, the "Last Duration" column shows the duration of the last successful build, unless there is no successful build. Then it shows the duration of the last failed build. See https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/hudson/views/LastDurationColumn/column.jelly#L27 I understand that it is still confusing and not immediately clear by the name of the column.   I would recommend to modify the existing BuildDuration column in the extra-columns plugin  to show the duration of the last build. I don't have time to actively work on this feature request, but I'd be happy to review a PR.   

            fredg Fred G
            martinjost Martin Jost
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: