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