Commit 9686a4f2 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Remove code creating job hash from legacy CI config

parent cf53d798
......@@ -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
......
......@@ -8,7 +8,7 @@ module Gitlab
# Temporary delegations that should be removed after refactoring
#
delegate :before_script, :image, :services, :after_script, :variables,
:stages, :cache, to: :@global
:stages, :cache, :jobs, to: :@global
def initialize(config)
@config = Loader.new(config).load!
......
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