Skip to content

Ensure only one release environment deployment at a time

What does this MR do and why?

To prevent simultaneous execution of deploy and qa jobs in a release environment, the deploy and qa jobs triggered by the first pipeline will take precedence. Meanwhile, the deploy and qa jobs of subsequent pipelines will remain Waiting until the corresponding jobs in the first pipeline are completed.

Related Issue: gitlab-com/gl-infra/delivery#20008 (comment 1896145520)

Note: The previous MR was reverted since the keyword before_script is unknown for trigger jobs. I moved the GitLab API call to edit the resource_group to the after_script of release-environments-deploy-env instead (since this job is run in preparation for the actual deploy job).

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports