summaryrefslogtreecommitdiff
path: root/lib/ci
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-05 13:19:22 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-05 13:19:22 +0200
commit9686a4f2b2fd010b5a15409ba65ac4eed8e11c7b (patch)
treee7ac48ebd00e22c250cb161b7b1c47872c3144ce /lib/ci
parentcf53d798736f7c86459c3e6635a83875e6101373 (diff)
downloadgitlab-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.rb5
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