• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • core, metrics-plugin
    • None
    • Jenkins 2.138.3

      I see an incorrect display of task execution time.

      For example, 

      This run spent:

      • 11 min waiting;
      • 13 min build duration;
      • 13 min total from scheduled to completion.

      In fact, the build was executed in just 2 minutes, but i see 13 minutes (waiting + exec time).

      JSON contains correct timings:

      "buildableTimeMillis":702663,"buildingDurationMillis":832158,"executingTimeMillis":129299.

       

       

        1. build.png
          build.png
          28 kB
        2. jenkins_execution_time.png
          jenkins_execution_time.png
          14 kB
        3. Screenshot 2019-02-07 at 12.23.35.png
          Screenshot 2019-02-07 at 12.23.35.png
          45 kB
        4. spisok.png
          spisok.png
          77 kB

          [JENKINS-54689] Incorrect display build duration time

          Maksim Kolesnikov created issue -
          Maksim Kolesnikov made changes -
          Environment New: Jenkins 2.138.3
          Priority Original: Minor [ 4 ] New: Trivial [ 5 ]
          Maksim Kolesnikov made changes -
          Component/s New: core [ 15593 ]
          Stephen French made changes -
          Assignee New: Stephen French [ stephenfrench9 ]
          Stephen French made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Stephen French made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

          I am working on reproducing this error. 

          Can you clarify which two reports of build time disagree?

          Which display of task execution time are you speaking of? (The pipeline dashboard? For example, I browse to my Jenkins server running on an aws instance at  http://54.198.76.254:8080/ , and then click on my project, to take me to the pipeline dashboard. I named my project 'foo'. So the final address in my browser is http://54.198.76.254:8080/job/foo/. This page gives me times for all the different stages of my Jenkins pipeline)

          And the second source for build time (the JSON source), are you finding this at $BUILD_URL/api/json? For example, when I go to http://54.198.76.254:8080/job/foo/1/api/json?pretty=true I can see a "duration" entry with a value of 17994.

          Stephen French added a comment - I am working on reproducing this error.  Can you clarify which two reports of build time disagree? Which display of task execution time are you speaking of? (The pipeline dashboard? For example, I browse to my Jenkins server running on an aws instance at  http://54.198.76.254:8080/  , and then click on my project, to take me to the pipeline dashboard. I named my project 'foo'. So the final address in my browser is http://54.198.76.254:8080/job/foo/ . This page gives me times for all the different stages of my Jenkins pipeline) And the second source for build time (the JSON source), are you finding this at $BUILD_URL/api/json? For example, when I go to http://54.198.76.254:8080/job/foo/1/api/json?pretty=true I can see a "duration" entry with a value of 17994.
          Maksim Kolesnikov made changes -
          Attachment New: Screenshot 2019-02-07 at 12.23.35.png [ 45937 ]
          Maksim Kolesnikov made changes -
          Attachment New: build.png [ 45939 ]
          Maksim Kolesnikov made changes -
          Attachment New: spisok.png [ 45940 ]

            stephenfrench9 Stephen French
            maxx_nomad Maksim Kolesnikov
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: