summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2016-08-16 14:17:54 +0200
committerAhmad Sherif <me@ahmadsherif.com>2016-08-16 19:31:05 +0200
commitecd01d1be4abcc0d17385d28826f4f791b57e223 (patch)
tree8b5bc47dc0e167b19ba1999910f9f3b07cf7d483
parent7f853e2245eff92c037af5e007163d3e9631888d (diff)
downloadgitlab-ce-ecd01d1be4abcc0d17385d28826f4f791b57e223.tar.gz
Use artifacts_size to check for build artifacts existencefix/reduce-ci-build-artifacts-time
-rw-r--r--CHANGELOG1
-rw-r--r--app/models/ci/build.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 9299639a3ab..be3f206402e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -116,6 +116,7 @@ v 8.11.0 (unreleased)
- Fix a memory leak caused by Banzai::Filter::SanitizationFilter
- Speed up todos queries by limiting the projects set we join with
- Ensure file editing in UI does not overwrite commited changes without warning user
+ - Use artifacts_size to check for build artifacts existence
v 8.10.6 (unreleased)
- Fix import/export configuration missing some included attributes
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 3d6c6ea3209..6df5db61081 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -351,7 +351,7 @@ module Ci
end
def artifacts?
- !artifacts_expired? && artifacts_file.exists?
+ !artifacts_expired? && artifacts_size.present?
end
def artifacts_metadata?