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
path: root/lib/ci
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-08 12:02:26 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-18 14:17:47 +0300
commita1363d39c6fe79d830dbce468c02880d2a5d7996 (patch)
tree62dff2b35c5032f896ab8414f21982e200fa49ca /lib/ci
parente32fc7567be2ff2cc995648e675de18133f8a066 (diff)
Add `variables` keyword to job in CI config YAML
Diffstat (limited to 'lib/ci')
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb
index b7209c14148..712dc4492c5 100644
--- a/lib/ci/gitlab_ci_yaml_processor.rb
+++ b/lib/ci/gitlab_ci_yaml_processor.rb
@@ -7,7 +7,7 @@ module Ci
ALLOWED_YAML_KEYS = [:before_script, :image, :services, :types, :stages, :variables, :cache]
ALLOWED_JOB_KEYS = [:tags, :script, :only, :except, :type, :image, :services,
:allow_failure, :type, :stage, :when, :artifacts, :cache,
- :dependencies]
+ :dependencies, :variables]
attr_reader :before_script, :image, :services, :variables, :path, :cache
@@ -85,6 +85,7 @@ module Ci
artifacts: job[:artifacts],
cache: job[:cache] || @cache,
dependencies: job[:dependencies],
+ variables: job[:variables],
}.compact
}
end