summaryrefslogtreecommitdiff
path: root/app/uploaders/job_artifact_uploader.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-02-06 14:18:32 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-02-28 20:59:25 +0100
commit999118f0ec6edabc9e13c089381ad664970a080a (patch)
tree4201e2944efb5379c9355999fc3750d0b0710566 /app/uploaders/job_artifact_uploader.rb
parentb14c484bb1d174c7c355de2258be1a4414b2cf78 (diff)
downloadgitlab-ce-999118f0ec6edabc9e13c089381ad664970a080a.tar.gz
Merge branch 'feature/sm/artifacts-trace-ee' into 'master'
EE: Trace as artifacts (FileStorage and ObjectStorage) Closes #4171 See merge request gitlab-org/gitlab-ee!4258
Diffstat (limited to 'app/uploaders/job_artifact_uploader.rb')
-rw-r--r--app/uploaders/job_artifact_uploader.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/uploaders/job_artifact_uploader.rb b/app/uploaders/job_artifact_uploader.rb
index 3ad3e6ea32b..d80221144b4 100644
--- a/app/uploaders/job_artifact_uploader.rb
+++ b/app/uploaders/job_artifact_uploader.rb
@@ -1,4 +1,5 @@
class JobArtifactUploader < GitlabUploader
+ prepend EE::JobArtifactUploader
extend Workhorse::UploadPath
include ObjectStorage::Concern
@@ -14,6 +15,12 @@ class JobArtifactUploader < GitlabUploader
dynamic_segment
end
+ def open
+ raise 'Only File System is supported' unless file_storage?
+
+ File.open(path, "rb") if path
+ end
+
private
def dynamic_segment