diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 15:40:50 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 15:40:50 +0300 |
commit | c881425b665b9c0b022dc2e213486aecc320ec7e (patch) | |
tree | 0e6ac6a7a97cad92034973f9861077668c369aa2 /lib/ci | |
parent | 805715cc68aabb6992a63356ec7c19940f52c93a (diff) |
Refine pipeline stages seeds class
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb index aa6c94f26c8..5e6c3d029c6 100644 --- a/lib/ci/gitlab_ci_yaml_processor.rb +++ b/lib/ci/gitlab_ci_yaml_processor.rb @@ -51,7 +51,7 @@ module Ci end def stages_for_ref(ref, tag = false, trigger_request = nil) - stages = @stages.map do |stage| + stages = @stages.uniq.map do |stage| builds = builds_for_stage_and_ref(stage, ref, tag, trigger_request) { name: stage, builds_attributes: builds.to_a } if builds.any? |