summaryrefslogtreecommitdiff
path: root/lib/api/jobs.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-05-04 23:02:51 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2017-06-01 14:39:48 +0200
commite61f38d79eb85a7c601bd146d5b8e48a8b4418e5 (patch)
tree08abc6cb3f4ef57de157167fca8189a162298ae1 /lib/api/jobs.rb
parentc72abcefe79dd906cbbf0088b442a8979e9fc746 (diff)
downloadgitlab-ce-e61f38d79eb85a7c601bd146d5b8e48a8b4418e5.tar.gz
Fix data inconsistency issue for old artifacts by moving them to a currently used path
Diffstat (limited to 'lib/api/jobs.rb')
-rw-r--r--lib/api/jobs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/jobs.rb b/lib/api/jobs.rb
index 0223957fde1..7f94b1afdc4 100644
--- a/lib/api/jobs.rb
+++ b/lib/api/jobs.rb
@@ -225,7 +225,7 @@ module API
end
def present_artifacts!(artifacts_file)
- if !artifacts_file.file_storage?
+ if !artifacts_file.local_file?
redirect_to(build.artifacts_file.url)
elsif artifacts_file.exists?
present_file!(artifacts_file.path, artifacts_file.filename)