summaryrefslogtreecommitdiff
path: root/app/models/ci
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-31 15:13:40 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-31 15:13:40 +0200
commitc72e21fd9764845a107005562ff8ce1c06cac431 (patch)
tree1acd707d049036bd532046b91e5f25d55633744e /app/models/ci
parentc881425b665b9c0b022dc2e213486aecc320ec7e (diff)
downloadgitlab-ce-c72e21fd9764845a107005562ff8ce1c06cac431.tar.gz
Return stage seeds object from YAML processor
Diffstat (limited to 'app/models/ci')
-rw-r--r--app/models/ci/pipeline.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 7298f676a0e..d5b6da4eee6 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -295,14 +295,16 @@ module Ci
sort_by { |build| build[:stage_idx] }
end
- def config_stages_attributes
+ def stage_seeds
return [] unless config_processor
- config_processor.stages_for_ref(ref, tag?, trigger_requests.first)
+ config_processor.stage_seeds(ref: ref,
+ tag: tag?,
+ trigger: trigger_requests.first)
end
def has_stages?
- config_stages_attributes.any?
+ stage_seeds.has_stages?
end
def has_warnings?