Skip to content

Draft: Create MR when project is missing gitlab-ci.yml file

What does this MR do and why?

When there is no .gitlab-ci.yml file in a project and it tries to run a compliance pipeline, the pipeline will now show a specific error and a button so that user can easily create an MR to add the missing .gitlab-ci.yml

Screenshots or screen recordings

Pipeline--Gitlab-Org-No-yaml-test--GitLab__1_

How to set up and validate locally

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

  1. Configure a project with a compliance pipeline https://docs.gitlab.com/ee/user/group/compliance_frameworks.html#configure-a-compliance-pipeline
  2. Create a new compliance framework with the project and set as default https://docs.gitlab.com/ee/user/group/compliance_frameworks.html
  3. Create a new project and it should have the compliance framework label already set
  4. Go to CI/Cd from main left menu
  5. There should be one failed pipeline, click on it
  6. Confirm the Alert update
  7. Click on "Add file" button and confirm that an MR is created to add .gitlab-ci.yml file

https://docs.gitlab.com/ee/user/group/compliance_frameworks.html

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 #378854 (closed)

Edited by Nate Rosandich

Merge request reports