diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-06 18:08:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-06 18:08:05 +0300 |
commit | f78257cbddd711e18cbce93ad740a4aa0acac347 (patch) | |
tree | 7f018abe3ce1c0010879cc480f348a35e616fabb /app/models/ci/bridge.rb | |
parent | f500600a43b531e2e7a5858b74bd35312b02c349 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/ci/bridge.rb')
-rw-r--r-- | app/models/ci/bridge.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/bridge.rb b/app/models/ci/bridge.rb index a28e44d44c1..d62aa09e432 100644 --- a/app/models/ci/bridge.rb +++ b/app/models/ci/bridge.rb @@ -89,6 +89,10 @@ module Ci end end + def parent_pipeline + pipeline if triggers_child_pipeline? + end + def triggers_child_pipeline? yaml_for_downstream.present? end |