Setting up project integration

Project-level settings required for Azure DevOps or Azure Pipelines for your project analysis.

Adding SonarQube Community Build service connection to Azure Pipelines (SonarQube Community Build endpoint)

Service connections are authenticated connections between Azure Pipelines and external or remote services. You must declare your SonarQube Community Build as a service connection in your Azure DevOps project.

Proceed as follows:

  1. In SonarQube Community Build, create an authentication token that will be used by Azure DevOps to execute the analysis of your project in SonarQube Community Build. To do so, create a Project analysis token for your project and copy it (you may also use a Global analysis token, but it’s not recommended). For more information, see Managing your tokens.

  2. In your Azure DevOps project, go to Project Settings > Service connections.

  3. Select New service connection and then select SonarQube Server from the service connection list.

    Search for "sonar" when adding a new service connection to your Azure DevOps pipeline.

  4. Enter your SonarQube Community Build URL, the token created in the first step, and a memorable Service connection name (You will need this name when configuring your Azure build pipelines). Then, select Save to save your connection.

SonarQube connection name

Last updated

Was this helpful?