From fbbde8e5d2c47fee7bb8f093557cd28e341f4b5d Mon Sep 17 00:00:00 2001 From: Stephen Ware Date: Wed, 7 Sep 2011 12:14:26 -0700 Subject: [PATCH] add file size to job artifact list displays Signed-off-by: Stephen Ware --- core/src/main/java/hudson/model/Run.java | 21 ++++++++++++++++--- .../hudson/model/Run/artifacts-index.jelly | 2 +- .../main/resources/lib/hudson/artifactList.jelly | 2 +- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/hudson/model/Run.java b/core/src/main/java/hudson/model/Run.java index 784e758..fb19be2 100644 --- a/core/src/main/java/hudson/model/Run.java +++ b/core/src/main/java/hudson/model/Run.java @@ -878,17 +878,20 @@ public abstract class Run ,RunT extends Run,RunT extends Run=upTo) break; } else { // Don't store collapsed path in ArrayList (for correct data in external API) - r.add(collapsed ? new Artifact(child, a.relativePath, a.href, a.treeNodeId) : a); + r.add(collapsed ? new Artifact(child, a.relativePath, a.href, length, a.treeNodeId) : a); if (++n>=upTo) break; } } @@ -1031,11 +1034,17 @@ public abstract class Run ,RunT extends Run,RunT extends Run diff --git a/core/src/main/resources/lib/hudson/artifactList.jelly b/core/src/main/resources/lib/hudson/artifactList.jelly index 459341a..c293b97 100644 --- a/core/src/main/resources/lib/hudson/artifactList.jelly +++ b/core/src/main/resources/lib/hudson/artifactList.jelly @@ -51,7 +51,7 @@ THE SOFTWARE.
  • ${f.displayPath} - + ${f.length}${%Bytes} [fingerprint]
  • -- 1.7.4.4