summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/pipeline/seed/stage.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-01-23 11:15:14 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-01-25 10:39:26 +0100
commit3508948dfeda84b9ce84325133c96e8f8aa12b85 (patch)
treeb756987c91f1c615e88910a9cbfe2f86bc8a9c3e /lib/gitlab/ci/pipeline/seed/stage.rb
parentcfbcc191f0ea13b4e1676bac029840759b264694 (diff)
downloadgitlab-ce-3508948dfeda84b9ce84325133c96e8f8aa12b85.tar.gz
Add a new relation between a stage and related bridges
Diffstat (limited to 'lib/gitlab/ci/pipeline/seed/stage.rb')
-rw-r--r--lib/gitlab/ci/pipeline/seed/stage.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/pipeline/seed/stage.rb b/lib/gitlab/ci/pipeline/seed/stage.rb
index 015ca61d726..9c15064756a 100644
--- a/lib/gitlab/ci/pipeline/seed/stage.rb
+++ b/lib/gitlab/ci/pipeline/seed/stage.rb
@@ -41,7 +41,7 @@ module Gitlab
::Ci::Stage.new(attributes).tap do |stage|
seeds.each do |seed|
if seed.bridge?
- stage.statuses << seed.to_resource
+ stage.bridges << seed.to_resource
else
stage.builds << seed.to_resource
end