Skip to content

Adds ability for bridge to be retryable

Laura Montemayor requested to merge add-retry-to-bridge into master

What does this MR do and why?

Adds the retryable functionality to CI::Bridge, under the ci_recreate_downstream_pipeline flag.

How to set up and validate locally

Add a config that triggers a downstream pipeline. Simple example:

# gitlab-ci.yml
bridge_job:
  trigger:
     include: child-pipeline.yml

# child-pipeline.yml
job_x:
  script: ls

With the feature flag on, you will be able to see a retry icon in any bridge/trigger job:

Jan-11-2023_15-56-08

Note - the frontend has not yet been updated, which is why you will see a downstream pipeline created for every retry of the trigger job, like in the gif above.

MR acceptance checklist

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

Edited by Laura Montemayor

Merge request reports