Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-02-28 13:37:23 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-02-28 13:37:23 +0300
commit8a7c89adfb6f6013a8db7550958637d4815ed0d5 (patch)
treed607fc8835acb475e25ab2d7ac0fdb690979d773 /lib/gitlab/ci/pipeline/expression
parent6eeb837f3d8e31fefde0b214995a9c60acd4d7cc (diff)
Use pipeline runtime variables in expressions
Diffstat (limited to 'lib/gitlab/ci/pipeline/expression')
-rw-r--r--lib/gitlab/ci/pipeline/expression/statement.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/statement.rb b/lib/gitlab/ci/pipeline/expression/statement.rb
index 0b522d90e40..cd0d3089d0c 100644
--- a/lib/gitlab/ci/pipeline/expression/statement.rb
+++ b/lib/gitlab/ci/pipeline/expression/statement.rb
@@ -19,8 +19,8 @@ module Gitlab
return if pipeline.nil?
- @variables = pipeline.variables.map do |variable|
- [variable.key, variable.value]
+ @variables = pipeline.runtime_variables.map do |variable|
+ [variable.fetch(:key), variable.fetch(:value)]
end
end