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
1 merge request!5087Move CI job config entries from legacy to new config
Pipeline #
Loading
@@ -68,8 +68,9 @@ module Ci
Loading
@@ -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
Loading
Loading
Loading
@@ -8,7 +8,7 @@ module Gitlab
Loading
@@ -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!
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