diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-11-07 15:01:33 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-11-07 15:01:33 +0300 |
commit | 126fbe580fbe02be5c9f834af37e80c658940b7f (patch) | |
tree | 99ba903c9fd95135523ecaff3f5873c6ef0f67d0 /lib/gitlab/ci | |
parent | e7df959b8f99875edd246c7ac7779c3203e8755e (diff) |
Return untouched hash if no job is parallelized
Diffstat (limited to 'lib/gitlab/ci')
-rw-r--r-- | lib/gitlab/ci/config/normalizer.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gitlab/ci/config/normalizer.rb b/lib/gitlab/ci/config/normalizer.rb index 969ae093e8b..0717cbfa90e 100644 --- a/lib/gitlab/ci/config/normalizer.rb +++ b/lib/gitlab/ci/config/normalizer.rb @@ -9,14 +9,16 @@ module Gitlab end def normalize_jobs - extract_parallelized_jobs + extract_parallelized_jobs! + return @jobs_config if @parallelized_jobs.empty? + parallelized_config = parallelize_jobs parallelize_dependencies(parallelized_config) end private - def extract_parallelized_jobs + def extract_parallelized_jobs! @parallelized_jobs = {} @jobs_config.each do |job_name, config| |