Commit 451b684d authored by Shinya Maeda's avatar Shinya Maeda

Use source instead of trigger_requests in stage_seeds

parent 835f97a7
...@@ -51,11 +51,9 @@ module Ci ...@@ -51,11 +51,9 @@ module Ci
end end
def stage_seeds(pipeline) def stage_seeds(pipeline)
trigger_request = pipeline.trigger_requests.first
seeds = @stages.uniq.map do |stage| seeds = @stages.uniq.map do |stage|
builds = builds_for_stage_and_ref( builds = builds_for_stage_and_ref(
stage, pipeline.ref, pipeline.tag?, trigger_request) stage, pipeline.ref, pipeline.tag?, pipeline.source)
Gitlab::Ci::Stage::Seed.new(pipeline, stage, builds) if builds.any? Gitlab::Ci::Stage::Seed.new(pipeline, stage, builds) if builds.any?
end end
......
...@@ -49,8 +49,7 @@ module Gitlab ...@@ -49,8 +49,7 @@ module Gitlab
end end
def self.enabled? def self.enabled?
# Gitlab.config.gitaly.enabled Gitlab.config.gitaly.enabled
false
end end
def self.feature_enabled?(feature, status: MigrationStatus::OPT_IN) def self.feature_enabled?(feature, status: MigrationStatus::OPT_IN)
......
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