summaryrefslogtreecommitdiff
path: root/app/models/ci/job_artifact.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-05-01 22:27:54 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2018-05-01 22:27:54 +0200
commit9bb7abedf57f5325a92bebc2d93b85cf7e1fc303 (patch)
tree84fe11877609631929b2911ff44bb0d500c8bc2a /app/models/ci/job_artifact.rb
parent9267ef0bd1d2d9ee4b7fe596762fec3e978a02f3 (diff)
downloadgitlab-ce-9bb7abedf57f5325a92bebc2d93b85cf7e1fc303.tar.gz
Fix file_store for artifacts and lfs when saving
Diffstat (limited to 'app/models/ci/job_artifact.rb')
-rw-r--r--app/models/ci/job_artifact.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/job_artifact.rb b/app/models/ci/job_artifact.rb
index 39676efa08c..3b952391b7e 100644
--- a/app/models/ci/job_artifact.rb
+++ b/app/models/ci/job_artifact.rb
@@ -13,7 +13,7 @@ module Ci
after_save :update_project_statistics_after_save, if: :size_changed?
after_destroy :update_project_statistics_after_destroy, unless: :project_destroyed?
- after_save :update_file_store
+ after_save :update_file_store, if: :file_changed?
scope :with_files_stored_locally, -> { where(file_store: [nil, ::JobArtifactUploader::Store::LOCAL]) }