Use source instead of trigger_requests in stage_seeds

This commit is contained in:
Shinya Maeda 2017-06-07 22:45:24 +09:00
parent 835f97a7e2
commit 451b684d84
2 changed files with 2 additions and 5 deletions

View file

@ -51,11 +51,9 @@ module Ci
end
def stage_seeds(pipeline)
trigger_request = pipeline.trigger_requests.first
seeds = @stages.uniq.map do |stage|
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?
end

View file

@ -49,8 +49,7 @@ module Gitlab
end
def self.enabled?
# Gitlab.config.gitaly.enabled
false
Gitlab.config.gitaly.enabled
end
def self.feature_enabled?(feature, status: MigrationStatus::OPT_IN)