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/initial_pipeline_process_worker.rb')
-rw-r--r--app/workers/ci/initial_pipeline_process_worker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/ci/initial_pipeline_process_worker.rb b/app/workers/ci/initial_pipeline_process_worker.rb
index 067dbb7492f..703cae8bf88 100644
--- a/app/workers/ci/initial_pipeline_process_worker.rb
+++ b/app/workers/ci/initial_pipeline_process_worker.rb
@@ -28,6 +28,8 @@ module Ci
private
def create_deployments!(pipeline)
+ return if Feature.enabled?(:create_deployment_only_for_processable_jobs, pipeline.project)
+
pipeline.stages.flat_map(&:statuses).each { |build| create_deployment(build) }
end