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

Do not initialize YAML processor with project full path

parent d79ad28f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -337,7 +337,7 @@ module Ci
return @config_processor if defined?(@config_processor)
 
@config_processor ||= begin
Gitlab::Ci::YamlProcessor.new(ci_yaml_file, project.full_path)
Gitlab::Ci::YamlProcessor.new(ci_yaml_file)
rescue Gitlab::Ci::YamlProcessor::ValidationError, Psych::SyntaxError => e
self.yaml_errors = e.message
nil
Loading
Loading
Loading
Loading
@@ -5,12 +5,11 @@ module Gitlab
 
include Gitlab::Ci::Config::Entry::LegacyValidationHelpers
 
attr_reader :path, :cache, :stages, :jobs
attr_reader :cache, :stages, :jobs
 
def initialize(config, path = nil)
def initialize(config)
@ci_config = Gitlab::Ci::Config.new(config)
@config = @ci_config.to_hash
@path = path
 
unless @ci_config.valid?
raise ValidationError, @ci_config.errors.first
Loading
Loading
This diff is collapsed.
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