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

Stage view displays large artifact sizes incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • pipeline-stage-view-plugin 1.0

      The display of artifact sizes in the stage view popover for artifacts larger than 1024000 bytes is inconsistent with that of the "last successful artifacts" view. Artifacts appear to have become larger when they haven't.

      For example, I have a 7366340-byte artifact which is displayed as 7.18MB in the stage view, and correctly displayed as 7.03MB elsewhere.

      This is due to the following code in ui/src/main/js/util/formatters.js:

      var KB = 1024;
      var MB = KB * 1000;
      var GB = MB * 1000;
      var TB = GB * 1000;
      

            svanoort Sam Van Oort
            pderrin Philip Derrin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: