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 ...@@ -68,8 +68,9 @@ module Ci
@jobs = {} @jobs = {}
@config.except!(*ALLOWED_YAML_KEYS) @ci_config.jobs.each do |name, param|
@config.each { |name, param| add_job(name, param) } add_job(name, param)
end
raise ValidationError, "Please define at least one job" if @jobs.none? raise ValidationError, "Please define at least one job" if @jobs.none?
end end
......
...@@ -8,7 +8,7 @@ module Gitlab ...@@ -8,7 +8,7 @@ module Gitlab
# Temporary delegations that should be removed after refactoring # Temporary delegations that should be removed after refactoring
# #
delegate :before_script, :image, :services, :after_script, :variables, delegate :before_script, :image, :services, :after_script, :variables,
:stages, :cache, to: :@global :stages, :cache, :jobs, to: :@global
def initialize(config) def initialize(config)
@config = Loader.new(config).load! @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