diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-20 17:22:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-20 17:22:11 +0300 |
commit | 0c872e02b2c822e3397515ec324051ff540f0cd5 (patch) | |
tree | ce2fb6ce7030e4dad0f4118d21ab6453e5938cdd /app/workers/ci/create_downstream_pipeline_worker.rb | |
parent | f7e05a6853b12f02911494c4b3fe53d9540d74fc (diff) |
Add latest changes from gitlab-org/gitlab@15-7-stable-eev15.7.0-rc42
Diffstat (limited to 'app/workers/ci/create_downstream_pipeline_worker.rb')
-rw-r--r-- | app/workers/ci/create_downstream_pipeline_worker.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/workers/ci/create_downstream_pipeline_worker.rb b/app/workers/ci/create_downstream_pipeline_worker.rb index 747cb088272..9f5ff45b8a6 100644 --- a/app/workers/ci/create_downstream_pipeline_worker.rb +++ b/app/workers/ci/create_downstream_pipeline_worker.rb @@ -11,9 +11,15 @@ module Ci def perform(bridge_id) ::Ci::Bridge.find_by_id(bridge_id).try do |bridge| - ::Ci::CreateDownstreamPipelineService + result = ::Ci::CreateDownstreamPipelineService .new(bridge.project, bridge.user) .execute(bridge) + + if result.success? + log_extra_metadata_on_done(:new_pipeline_id, result.payload.id) + else + log_extra_metadata_on_done(:create_error_message, result.message) + end end end end |