Fix bridge status not inheriting canceled

What does this MR do and why?

CI bridges using strategy: depend should reflect the status of the downstream pipeline. We have a bug where a canceled downstream shows as a failed bridge. This MR fixes that behavior so the bridge status correctly shows as canceled.

Screenshots or screen recordings

Screen_Recording_2023-05-10_at_14.03.57

How to set up and validate locally

  1. You need 2 projects to validate this - Project A and Project B
  2. In Project B, add a simple CI config:
    downstream_job:
      script: sleep 120
  3. In Project A's CI config, trigger the pipeline in Project B using strategy: depend:
    trigger_pipeline:
      trigger:
        project: root/projecty
        branch: main
        strategy: depend
  4. Run a pipeline in Project A
  5. Cancel the running job in the downstream pipeline
  6. See that the status of the bridge is also "canceled"

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #220794 (closed)

Merge request reports

Loading