Add ability to fix 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-2 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 add the missing .gitlab-ci.yml
file
Screenshots or screen recordings
Missing gitlab-ci.yml
file Error Alert
All other Errors Alert
Add missing file demo
Pipeline--Gitlab-Org-Compliance-testing-No-yaml-test--GitLab
How to set up and validate locally
- Create a project in a group
- Add a compliance pipeline yaml file to the project https://docs.gitlab.com/ee/user/group/compliance_frameworks.html#configure-a-compliance-pipeline
- Create a new compliance framework in the group, use the project compliance yaml file 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
->Pipelines
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
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