Commit 3dec6e26 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Rename method that returns global envs in CI conf

parent b7946b50
......@@ -372,7 +372,7 @@ module Ci
def global_yaml_variables
if commit.config_processor
commit.config_processor.variables.map do |key, value|
commit.config_processor.global_variables.map do |key, value|
{ key: key, value: value, public: true }
end
else
......
......@@ -40,7 +40,7 @@ module Ci
@stages || DEFAULT_STAGES
end
def variables
def global_variables
@variables
end
......
......@@ -359,7 +359,7 @@ module Ci
})
config_processor = GitlabCiYamlProcessor.new(config, path)
expect(config_processor.variables).to eq(variables)
expect(config_processor.global_variables).to eq(variables)
end
end
......
Markdown is supported
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