diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-09-16 11:25:37 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-19 10:07:14 +0200 |
commit | 2ad7753d34a963abfcadfa42e5d5b4cd59afc221 (patch) | |
tree | 55b0190174f7da116e8cb05a8215e8908bff9eea /lib/ci | |
parent | 3fbfc30f5e131e950564712d6f0d1837cd7605e3 (diff) | |
download | gitlab-ce-2ad7753d34a963abfcadfa42e5d5b4cd59afc221.tar.gz |
Fix CI job environment configuration attributes
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb index 94a63508f79..0369e80312a 100644 --- a/lib/ci/gitlab_ci_yaml_processor.rb +++ b/lib/ci/gitlab_ci_yaml_processor.rb @@ -60,7 +60,7 @@ module Ci name: job[:name].to_s, allow_failure: job[:allow_failure] || false, when: job[:when] || 'on_success', - environment: job.fetch(:environment, {})[:name], + environment: job[:environment_name], yaml_variables: yaml_variables(name), options: { image: job[:image], |