diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-29 08:52:06 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-29 09:51:19 +0100 |
commit | 504696453bb7d89278bf021393274e475b84ebbd (patch) | |
tree | 2a88a145999d3c30efc4074ea91749ff7099ad29 /app/uploaders | |
parent | 42592201d9ce57817d439c5899b63776872a4175 (diff) | |
download | gitlab-ce-504696453bb7d89278bf021393274e475b84ebbd.tar.gz |
Add hotfix that allows to access build artifacts created before 8.3fix/missing-ci-build-traces
This is a temporary hotfix that allows to access build artifacts created
before 8.3. See #5257.
This needs to be changed after migrating CI build files.
Note that `ArtifactUploader` uses `artifacts_path` to create a storage
directory before and after parsisting `Ci::Build` instance, before and
after moving a file to store (save and fetch a file).
Diffstat (limited to 'app/uploaders')
-rw-r--r-- | app/uploaders/artifact_uploader.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/uploaders/artifact_uploader.rb b/app/uploaders/artifact_uploader.rb index 1dccc39e7e2..1b0ae6c0056 100644 --- a/app/uploaders/artifact_uploader.rb +++ b/app/uploaders/artifact_uploader.rb @@ -20,16 +20,12 @@ class ArtifactUploader < CarrierWave::Uploader::Base @build, @field = build, field end - def artifacts_path - File.join(build.created_at.utc.strftime('%Y_%m'), build.project.id.to_s, build.id.to_s) - end - def store_dir - File.join(ArtifactUploader.artifacts_path, artifacts_path) + File.join(self.class.artifacts_path, @build.artifacts_path) end def cache_dir - File.join(ArtifactUploader.artifacts_cache_path, artifacts_path) + File.join(self.class.artifacts_cache_path, @build.artifacts_path) end def file_storage? |