summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-08-29 13:10:57 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-08-29 13:10:57 +0200
commitbd807503d14f2592e2c89c361c6967866580e977 (patch)
tree4db983505e3d5e0d507f2d12af33f06d7d2c320a
parent62f704c5ad421a538257917d75f68b3c698b9be0 (diff)
downloadgitlab-ce-bd807503d14f2592e2c89c361c6967866580e977.tar.gz
Do not override job nodes in legacy ci config code
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb
index 47efd5bd9f2..5f1ba97214e 100644
--- a/lib/ci/gitlab_ci_yaml_processor.rb
+++ b/lib/ci/gitlab_ci_yaml_processor.rb
@@ -60,7 +60,7 @@ module Ci
# - before script behaves differently than after script
# - after script returns an array of commands
# - before script should be a concatenated command
- commands: [job[:before_script] || @before_script, job[:script]].flatten.compact.join("\n"),
+ commands: [job[:before_script], job[:script]].flatten.compact.join("\n"),
tag_list: job[:tags] || [],
name: job[:name].to_s,
allow_failure: job[:allow_failure] || false,
@@ -68,12 +68,12 @@ module Ci
environment: job[:environment],
yaml_variables: yaml_variables(name),
options: {
- image: job[:image] || @image,
- services: job[:services] || @services,
+ image: job[:image],
+ services: job[:services],
artifacts: job[:artifacts],
- cache: job[:cache] || @cache,
+ cache: job[:cache],
dependencies: job[:dependencies],
- after_script: job[:after_script] || @after_script,
+ after_script: job[:after_script],
}.compact
}
end