diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-11-22 14:27:30 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-11-23 13:05:22 +0100 |
commit | 11728b50f96a296c760d9e69273d304f92e51f8f (patch) | |
tree | ad5857ebeb7db44b4fa48e51b72001a4e1efa205 /app/uploaders | |
parent | 7b70a03e44559900921f06464ff6422d4ed15712 (diff) | |
download | gitlab-ce-11728b50f96a296c760d9e69273d304f92e51f8f.tar.gz |
Expose artifacts pathci-artifacts-path
Diffstat (limited to 'app/uploaders')
-rw-r--r-- | app/uploaders/artifact_uploader.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/uploaders/artifact_uploader.rb b/app/uploaders/artifact_uploader.rb index b4e0fc5772d..1dccc39e7e2 100644 --- a/app/uploaders/artifact_uploader.rb +++ b/app/uploaders/artifact_uploader.rb @@ -5,15 +5,15 @@ class ArtifactUploader < CarrierWave::Uploader::Base attr_accessor :build, :field def self.artifacts_path - File.expand_path('shared/artifacts/', Rails.root) + Gitlab.config.artifacts.path end def self.artifacts_upload_path - File.expand_path('shared/artifacts/tmp/uploads/', Rails.root) + File.join(self.artifacts_path, 'tmp/uploads/') end def self.artifacts_cache_path - File.expand_path('shared/artifacts/tmp/cache/', Rails.root) + File.join(self.artifacts_path, 'tmp/cache/') end def initialize(build, field) |