diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-05 13:19:22 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-05 13:19:22 +0200 |
commit | 9686a4f2b2fd010b5a15409ba65ac4eed8e11c7b (patch) | |
tree | e7ac48ebd00e22c250cb161b7b1c47872c3144ce /lib/ci | |
parent | cf53d798736f7c86459c3e6635a83875e6101373 (diff) | |
download | gitlab-ce-9686a4f2b2fd010b5a15409ba65ac4eed8e11c7b.tar.gz |
Remove code creating job hash from legacy CI config
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb index 01ef13df57a..8d0bbe1ae56 100644 --- a/lib/ci/gitlab_ci_yaml_processor.rb +++ b/lib/ci/gitlab_ci_yaml_processor.rb @@ -68,8 +68,9 @@ module Ci @jobs = {} - @config.except!(*ALLOWED_YAML_KEYS) - @config.each { |name, param| add_job(name, param) } + @ci_config.jobs.each do |name, param| + add_job(name, param) + end raise ValidationError, "Please define at least one job" if @jobs.none? end |