summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-18 14:35:31 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-18 14:35:31 +0200
commitf52c61f846ce68b5d3517be3a0761773775dce29 (patch)
tree058fbad9cac848d8458d0faea91b50d9f3c17809 /lib/gitlab/ci
parentd79ad28fcb44c35d77de26d428ae61bc6d71e8ec (diff)
downloadgitlab-ce-f52c61f846ce68b5d3517be3a0761773775dce29.tar.gz
Do not initialize YAML processor with project full path
Diffstat (limited to 'lib/gitlab/ci')
-rw-r--r--lib/gitlab/ci/yaml_processor.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/ci/yaml_processor.rb b/lib/gitlab/ci/yaml_processor.rb
index da39a28df4c..0bd78b03448 100644
--- a/lib/gitlab/ci/yaml_processor.rb
+++ b/lib/gitlab/ci/yaml_processor.rb
@@ -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