Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/ci/pipeline_success_unlock_artifacts_worker.rb')
-rw-r--r--app/workers/ci/pipeline_success_unlock_artifacts_worker.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/ci/pipeline_success_unlock_artifacts_worker.rb b/app/workers/ci/pipeline_success_unlock_artifacts_worker.rb
index 590514424bb..2a1f492cacb 100644
--- a/app/workers/ci/pipeline_success_unlock_artifacts_worker.rb
+++ b/app/workers/ci/pipeline_success_unlock_artifacts_worker.rb
@@ -13,7 +13,9 @@ module Ci
def perform(pipeline_id)
::Ci::Pipeline.find_by_id(pipeline_id).try do |pipeline|
- break unless pipeline.has_archive_artifacts?
+ # TODO: Move this check inside the Ci::UnlockArtifactsService
+ # once the feature flags in it have been removed.
+ break unless pipeline.has_erasable_artifacts?
results = ::Ci::UnlockArtifactsService
.new(pipeline.project, pipeline.user)