diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-07-31 17:36:57 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-08-04 19:42:29 +0200 |
commit | 16084ee9d3fdfc333a113e4cbcd3f6d2fc402628 (patch) | |
tree | d91c401dda30bc3a015161488aaf2fcb6808a661 /lib | |
parent | bce8b66d516e906f6131d8a6dcae797def5288b6 (diff) | |
download | gitlab-ce-16084ee9d3fdfc333a113e4cbcd3f6d2fc402628.tar.gz |
Port changes from EEmc/feature/pipeline-tracking-config-ce
Ports changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/12343
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline/seed/build.rb | 5 | ||||
-rw-r--r-- | lib/gitlab/ci/yaml_processor.rb | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/gitlab/ci/pipeline/seed/build.rb b/lib/gitlab/ci/pipeline/seed/build.rb index ab0d4c38ab6..175f146c5b3 100644 --- a/lib/gitlab/ci/pipeline/seed/build.rb +++ b/lib/gitlab/ci/pipeline/seed/build.rb @@ -45,7 +45,10 @@ module Gitlab end def bridge? - @attributes.to_h.dig(:options, :trigger).present? + attributes_hash = @attributes.to_h + attributes_hash.dig(:options, :trigger).present? || + (attributes_hash.dig(:options, :bridge_needs).instance_of?(Hash) && + attributes_hash.dig(:options, :bridge_needs, :pipeline).present?) end def all_of_only? diff --git a/lib/gitlab/ci/yaml_processor.rb b/lib/gitlab/ci/yaml_processor.rb index 998130e5bd0..2e1eab270ff 100644 --- a/lib/gitlab/ci/yaml_processor.rb +++ b/lib/gitlab/ci/yaml_processor.rb @@ -55,7 +55,8 @@ module Gitlab parallel: job[:parallel], instance: job[:instance], start_in: job[:start_in], - trigger: job[:trigger] + trigger: job[:trigger], + bridge_needs: job[:needs] }.compact }.compact end |