diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-03-11 15:39:11 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-03-11 15:41:05 +0300 |
commit | ad4d3a075fc338280baaf6240861c9de7aa312ad (patch) | |
tree | 14c99f23fa5a85686f3b5be1b5160a5ff45ce657 /lib | |
parent | 0c5b92cbd7afe7483470c7d33a0b8475ba91d390 (diff) |
Describe special YAML features: the use of anchors and hidden jobs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 2 |
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 |