https://www.coachdevops.com/2024/03/h...
What is Quality gate?
In SonarQube a quality gate is a set of conditions that must be met in order for a project to be marked as passed.
Pre-requisites:
Make sure SonarQube is up and running
Make sure Java Project is setup in GitHub
SonarQube is already integrated with GitHub Actions
SONAR_HOST_URL and SONAR_TOKEN configured as secrets in GitHub Repo
How to Create Quality gate in SonarQube and integrate with GitHub Actions?
Make sure SonarQube is up and running and integrated with GitHub Actions. Please click here if you would like to setup SonarQube and integrate with GitHub Actions.
We will be executing below steps:
Login to SonarQube
Create Quality Gate in SonarQube
Add conditions in Quality Gate
Make quality gate as Default
Create GitHub Actions CICD workflow yaml
Add tasks for Maven build and Sonar Scan
Add tasks for integrating Quality gate
pass/fail the builds in SonarQube
Смотрите видео How to Create Quality Gate in SonarQube and Integrate with GitHub Actions CICD Pipeline онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь DevOps Coach 12 Март 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,360 раз и оно понравилось 53 людям.