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

"Duration" reported in API does not include time spent in queue.

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • core
    • None

      The value reported at /job/jobname/api/json?tree=builds[duration] does not include time spent waiting for an available worker. I can't find another attribute that has this information in it.

      This is important to me because I care about the total time someone is spent waiting for a build, not just the actual execution.

      Thanks,
      Xavier

      (P.S. http://javadoc.jenkins-ci.org/hudson/model/Run.html#getDuration() is not clear whether the return value includes queue time or not.)

      Jenkins ver. 1.532.2

            Unassigned Unassigned
            xaviershay Xavier Shay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: