Draft: Create MR when project is missing gitlab-ci.yml file
requested to merge 378854-make-it-clear-when-a-project-is-missing-gitlab-ci-yml-file-and-make-the-fix-easy into master
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
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Configure a project with a compliance pipeline https://docs.gitlab.com/ee/user/group/compliance_frameworks.html#configure-a-compliance-pipeline
- Create a new compliance framework with the project and set as default https://docs.gitlab.com/ee/user/group/compliance_frameworks.html
- Create a new project and it should have the compliance framework label already set
- Go to CI/Cd from main left menu
- There should be one failed pipeline, click on it
- Confirm the Alert update
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #378854 (closed)
Edited by Nate Rosandich