Skip to content
Snippets Groups Projects
Commit 9686a4f2 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Remove code creating job hash from legacy CI config

parent cf53d798
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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!
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment