summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-03-11 13:39:11 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-03-11 13:41:05 +0100
commitad4d3a075fc338280baaf6240861c9de7aa312ad (patch)
tree14c99f23fa5a85686f3b5be1b5160a5ff45ce657 /lib
parent0c5b92cbd7afe7483470c7d33a0b8475ba91d390 (diff)
downloadgitlab-ce-ad4d3a075fc338280baaf6240861c9de7aa312ad.tar.gz
Describe special YAML features: the use of anchors and hidden jobs
Diffstat (limited to 'lib')
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb
index 1a3f662811a..8ece73eec0e 100644
--- a/lib/ci/gitlab_ci_yaml_processor.rb
+++ b/lib/ci/gitlab_ci_yaml_processor.rb
@@ -60,6 +60,7 @@ module Ci
@jobs = {}
@config.each do |key, job|
+ next if key.to_s.start_with?('.')
stage = job[:stage] || job[:type] || DEFAULT_STAGE
@jobs[key] = { stage: stage }.merge(job)
end
@@ -81,6 +82,7 @@ module Ci
services: job[:services] || @services,
artifacts: job[:artifacts],
cache: job[:cache] || @cache,
+ dependencies: job[:dependencies],
}.compact
}
end