Commit f52c61f8 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Do not initialize YAML processor with project full path

parent d79ad28f
......@@ -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
......
......@@ -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
......
This diff is collapsed.
Supports Markdown
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