diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-28 11:16:48 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-28 11:16:48 +0000 |
commit | 0a294698db01112c407575e690a8a368be6b15f8 (patch) | |
tree | da9cecaebe37d2d982fb45c80d2eefd138d3d78c /lib/ci | |
parent | fe0c59d2e61238e1241be448a37be0e3e702a5ce (diff) | |
download | gitlab-ce-0a294698db01112c407575e690a8a368be6b15f8.tar.gz |
Just save the size in total rather than individual files
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12741046
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/api/builds.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb index 93eed4496e4..7bfcc40a9f1 100644 --- a/lib/ci/api/builds.rb +++ b/lib/ci/api/builds.rb @@ -147,7 +147,7 @@ module Ci build.artifacts_file = artifacts build.artifacts_metadata = metadata build.artifacts_expire_in = params['expire_in'] - build.artifacts_sizes = build.artifacts_metadata_sizes + build.artifacts_size = artifacts.size if build.save present(build, with: Entities::BuildDetails) |