diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-12-19 21:15:47 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-12-19 21:15:47 +0800 |
commit | 3ea8d983adc467c64c91b2cad91486555678c958 (patch) | |
tree | bd0650349de1ff6d6da0fb708fb1c59f6ce915c2 | |
parent | f2afdc92b8029f628f6f8ed2d5b9dc1323fd3295 (diff) | |
download | gitlab-ce-3ea8d983adc467c64c91b2cad91486555678c958.tar.gz |
Keep the value type for YAML variables
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8088#note_20235080
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/serialize/ci/variables.rb | 1 |
2 files changed, 1 insertions, 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 |