Skip to main content
No Result Found
Connect and get help from 7,000+ developers on our Discord community. Ask the CommunityAsk the Community

Integrate SonarQube

Integrate SonarQube with Quality Engineering Insights (QEI) to import and visualize key code health metrics. This allows you to track line coverage, branch coverage, open bugs, code smells, and vulnerabilities directly within your QEI dashboards.

This document explains how to connect your SonarQube instance and configure your projects.

Prerequisites

Before you begin, you must have a Personal Access Token (PAT) from your SonarQube instance.

The Personal Access Token must have Browse permission. This permission is required for QEI to connect and access your project data.

Connect your SonarQube account

You must be an admin in QEI to manage integrations. Follow these steps to connect with your SonarQube account:

  1. From the QEI left navigation bar, go to Integrations.

    Click integrations tab on the left navigation bar

  2. Find and click the SCA Tools tab.
  3. On the SonarQube tile, click Connect.

    Click connect under SonarQube tile

  4. In the Connect SonarQube dialog, paste your Personal Access Token.

    Paste your SonarQube's personal access token

  5. Click Continue.

QEI will validate your token and connect to your SonarQube instance.

Configure repositories

After successfully connecting, you must select which projects to import.

  1. On the Understanding your setup screen, use the Select organization dropdown to choose the SonarQube organization you want to sync.

    Use the Select organization dropdown to choose the SonarQube organization

  2. Once an organization is selected, the Select Repositories list will load.
  3. Check the boxes for all repositories (projects) you want to import data from. You can select multiple repositories.

    Click view insights button

  4. Click View insights.

QEI will begin importing your SonarQube data. This may take a few minutes. Once complete, you will be redirected to your dashboard, and data will be visible on the Code Health dashboard.

View SonarQube data

Once your data is imported, you can see it in Code Health Dashboard:

  • A dedicated dashboard that displays all your key SonarQube metrics, widgets, and trends.

Disconnect SonarQube

Disconnecting SonarQube will remove the integration and stop all data imports. All existing Code Health widgets will stop displaying data.

  1. Navigate to Integrations from left sidebar.

    Click integrations tab on the left navigation bar

  2. Select SCA Tools.
  3. Click View Details on the connected SonarQube integration tile.

    Click view details under SonarQube tile

  4. On the SonarQube data page, click more options (â‹®).

    Click elipsis menu and button

  5. Click Disconnect button (trash icon).
  6. A confirmation dialog will appear. Type Disconnect to confirm.

    Type disconnect and confirm

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle