Rename method that returns global envs in CI conf
This commit is contained in:
parent
b7946b50fc
commit
3dec6e2629
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue