SonarQube Plugin
This page helps you generate an access token for SonarQube and configure the necessary settings to integrate SonarQube with your developer platform.
Generating a Personal Access Token
If available, use a service account for this task.
-
Open your SonarQube instance, and log in to your account.
-
Click your profile picture or avatar at the top right corner, then select My Account from the dropdown menu.
-
Click the Security tab.
-
In the Generate Tokens section, enter a name for your token, such as "Venue.sh Token."
-
From the Type dropdown, select Global Analysis Token.
-
Click Generate.
A new token appears.
-
Copy the token to your clipboard.
tipMake sure you save the token in a secure place. You won't be able to see it again!
Configuring the SonarQube Plugin in Venue.sh
-
In the Venue.sh app, click Plugins in the left-side navigation.
-
Find SonarQube, then click Enable Plugin.
-
Enter the values for the following three fields:
-
API BaseURL: The URL for the SonQube API.
- Format:
https://<your sonarqube instance url>/api
- Example:
https://your.sonarqube.instance.com/api
- Format:
-
Token: The token you generated in the previous section.
-
Base URL: The base URL for your SonarQube instance.
- Format:
https://<your sonarqube instance URL>
- Example:
https://your.sonarqube.instance.com
- Format:
-
-
Click Enable.
Component Setup
To connect your SonarQube project, add the following annotion to your component catalog-info.yaml file:
metadata:
annotations:
sonarqube.org/project-key: [YOUR_PROJECT_KEY]