diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-08 06:08:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-08 06:08:50 +0000 |
commit | 6397f0322d3841d98d64e9c60bb84b94c40617d7 (patch) | |
tree | cc54eebf050e102dcf7394f5b94b7699148050df /app/services | |
parent | 91ed938e3d17d385a08459915972d7e3f6b8468e (diff) | |
download | gitlab-ce-6397f0322d3841d98d64e9c60bb84b94c40617d7.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/ci/pipeline_bridge_status_service.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/services/ci/pipeline_bridge_status_service.rb b/app/services/ci/pipeline_bridge_status_service.rb new file mode 100644 index 00000000000..19ed5026a3a --- /dev/null +++ b/app/services/ci/pipeline_bridge_status_service.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Ci + class PipelineBridgeStatusService < ::BaseService + def execute(pipeline) + return unless pipeline.bridge_triggered? + + pipeline.source_bridge.inherit_status_from_downstream!(pipeline) + end + end +end + +Ci::PipelineBridgeStatusService.prepend_if_ee('EE::Ci::PipelineBridgeStatusService') |