Skip to main content
SonarQube Server
Updated over 2 weeks ago

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

  1. Navigate to the new connection form in DX.

  2. 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.

Errors

The table below lists potential error codes when adding a connection in DX.

Error

Description

invalid_credentials

Your API credentials entered are not valid.

invalid_permissions

Your API token does not have the permissions required by DX.

Did this answer your question?