By integrating SonarQube with DX, you can analyze security issues you can view insights into code coverage, code smells, and vulnerabilities. Please visit our schema explorer to see what data DX imports.
Prerequisites
To connect SonarQube Server to DX, you need:
a SonarQube Server account with admin access
if your SonarQube instance is behind a firewall or has IP restrictions, you need to allowlist DX IP addresses
Setup instructions
Follow the steps below to connect SonarQube Server to DX.
Step 1
Log in to your SonarQube Server account and navigate to Account > Security.
Step 2
Click "Generate Token" and copy the token. API tokens provide access to all API endpoints although DX only accesses endpoints that are listed below.
Step 3
Navigate to the new connection form in DX.
Enter the credentials you have generated in the previous steps—refer to the information below for errors and troubleshooting.
API Reference
The table below lists the specific API endpoints that are used by DX.
Endpoint | Reference |
/projects/search | |
/issues/search | |
/hotspots/search | |
/measures/search_history | |
/metrics/search |
Errors
The table below lists potential error codes when adding a connection in DX.
Error | Description |
| Your API credentials entered are not valid. |
| Your API token does not have the permissions required by DX. |