Skip to content
Snippets Groups Projects
Commit 109ecf6f authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Do not select included stage seeds in populate chain

parent 000f9d01
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment