Terraform Widget fix -MR pipelines
What does this MR do and why?
Adds rules to run MR pipelines to Terraform.latest.gitlab-ci.yml
so that one pipeline is created for each merge request. This then fixes the terraform widget and solves #376015 (closed)
The terraform artifacts don't get added to the merge request if there are two pipelines .It would seem to me that Jobs/SAST-IaC.latest.gitlab-ci.yml has rules that mean a pipeline is created for the merge request or the branch. Where are Terraform/Base.latest.gitlab-ci.yml has rules that create a pipeline for the branch. This means that there are two pipelines for a merge request.
This fix normalises the Terraform
pipeline jobs so they match the SAST-IaC
jobs.
Running examples
Here is a example repo that I have made which has an MR that show the widget not working and an MR that shows the fix
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.