Integrate SonarQube
It is essential for KubeRocketCI to have SonarQube integrated with the platform as all the pipelines include the sonar
step.
SonarQube is a powerful tool used in build and code review pipelines to enhance code quality by identifying and reporting issues, as well as providing recommendations for improvement. SonarCloud, the SaaS solution offered by SonarQube, serves this purpose.
This guide will walk you through the configuration process of SonarCloud for your project.
An alternative option is to use an independent SonarQube instance.
Integrate SonarCloud​
To integrate SonarCloud with the platform, follow the steps below:
-
Sign up in the SonarCloud with your GitHub account.
-
Once you are logged in with GitHub, on organization page import a new one from GitHub:
noteIt is crucial to have the organization created in SonarCloud. If you were signed up in SonarCloud using a GitHub account, SonarCloud will suggest you creating an organization with name that is equivalent to your GitHub account name.
-
In the Create an organization menu, choose the free plan and click Create organization:
noteOrganization key must be unique.
-
In your account menu, select the Security tab and generate token:
-
In the UI Portal, navigate to Configuration -> Code Quality. Define the following values and click Save:
- URL:
https://sonarcloud.io
- Token:
account token generated in SonarCloud
- URL:
After completing the SonarQube integration, proceed to integrate the platform with GitHub. Navigate to the Integrate GitHub page for further instructions.