From ecd01d1be4abcc0d17385d28826f4f791b57e223 Mon Sep 17 00:00:00 2001 From: Ahmad Sherif Date: Tue, 16 Aug 2016 14:17:54 +0200 Subject: [PATCH] Use artifacts_size to check for build artifacts existence --- CHANGELOG | 1 + app/models/ci/build.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 9299639a3ab3..be3f206402e0 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 3d6c6ea3209a..6df5db61081d 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -351,7 +351,7 @@ def execute_hooks end def artifacts? - !artifacts_expired? && artifacts_file.exists? + !artifacts_expired? && artifacts_size.present? end def artifacts_metadata? -- GitLab