summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-22 14:10:16 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-22 14:10:16 +0100
commit109ecf6f07a55b2dbd4a4e729ffad72ef7c24643 (patch)
tree1a65fd4192179b1e67d98da10a928526c29cefa9
parent000f9d01f7a8c6eb20c16927f95a2e3de42bc283 (diff)
downloadgitlab-ce-109ecf6f07a55b2dbd4a4e729ffad72ef7c24643.tar.gz
Do not select included stage seeds in populate chain
-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