From 3ea8d983adc467c64c91b2cad91486555678c958 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Mon, 19 Dec 2016 21:15:47 +0800 Subject: Keep the value type for YAML variables Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8088#note_20235080 --- lib/ci/gitlab_ci_yaml_processor.rb | 2 +- lib/gitlab/serialize/ci/variables.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb index 8806a506ffa..7463bd719d5 100644 --- a/lib/ci/gitlab_ci_yaml_processor.rb +++ b/lib/ci/gitlab_ci_yaml_processor.rb @@ -118,7 +118,7 @@ module Ci .merge(job_variables(name)) variables.map do |key, value| - { key: key.to_s, value: value.to_s, public: true } + { key: key.to_s, value: value, public: true } end end diff --git a/lib/gitlab/serialize/ci/variables.rb b/lib/gitlab/serialize/ci/variables.rb index 8919f0ccd00..3a9443bfcd9 100644 --- a/lib/gitlab/serialize/ci/variables.rb +++ b/lib/gitlab/serialize/ci/variables.rb @@ -14,7 +14,6 @@ module Gitlab object.map do |variable| variable[:key] = variable[:key].to_s - variable[:value] = variable[:value].to_s variable end end -- cgit v1.2.1