Commit c5606088 authored by Shinya Maeda's avatar Shinya Maeda

Fix broken fixture 25_downstream_pipelines

parent 68e1d5f6
......@@ -9,6 +9,10 @@ Gitlab::Seeder.quiet do
.where.not(project: project)
.order('random()').first
# If the number of created projects is 1 (i.e. env['SIZE'] == 1),
# a target pipeline becomes nil.
next unless target_pipeline
# link to source pipeline
pipeline.sourced_pipelines.create!(
source_job: pipeline.builds.all.sample,
......
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