Integrate SonarQubeβοΈ
It is mandatory for EDP to have SonarQube integrated with the platform as all the pipelines include the sonar
step.
SonarQube is a robust tool employed in build and code review pipelines to elevate code quality by detecting and reporting issues, along with offering improvement recommendations. SonarCloud, the SaaS solution provided by SonarQube, serves this purpose.
This guide will lead you through the configuration process of SonarCloud for your project.
Note
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, import an organization from GitHub:
Note
It 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:
-
In your account menu, select the Security tab and generate token:
-
In EDP Portal, navigate to
EDP
->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.