summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gitlab/ci/pipeline/chain/populate.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/populate.rb b/lib/gitlab/ci/pipeline/chain/populate.rb
index c675f7b5597..5c261ddd2a9 100644
--- a/lib/gitlab/ci/pipeline/chain/populate.rb
+++ b/lib/gitlab/ci/pipeline/chain/populate.rb
@@ -9,19 +9,16 @@ module Gitlab
def perform!
##
- # Populate pipeline with block `CreatePipelineService#execute`.
+ # Populate pipeline with block argument of CreatePipelineService#execute.
#
@command.seeds_block&.call(pipeline)
##
- # Populate pipeline with all stages and builds.
+ # Populate pipeline with all stages and builds from pipeline seeds.
#
pipeline.stage_seeds.each do |seed|
seed.user = current_user
- # TODO, this needs specs, no test coverage
- next unless seed.included?
-
pipeline.stages << seed.to_resource
end