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

Make currentBuild.duration more meaningful and add string equivalent

    XMLWordPrintable

Details

    Description

      currentBuild.duration always returns 0, since Run.duration is 0 until the run completes. So we should switch currentBuild.duration to return System.currentTimeMillis() - currentBuild.startTimeInMillis and add currentBuild.durationString, calling Run.getDurationString().

      Attachments

        Issue Links

          Activity

            abayer Andrew Bayer created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #33 (Web Link)" [ 15738 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]

            People

              abayer Andrew Bayer
              abayer Andrew Bayer
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: