diff options
Diffstat (limited to 'app/workers/ci/initial_pipeline_process_worker.rb')
-rw-r--r-- | app/workers/ci/initial_pipeline_process_worker.rb | 2 |
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 |