BigW Consortium Gitlab

Commit 109ecf6f by Grzegorz Bizon

Do not select included stage seeds in populate chain

parent 000f9d01
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment