Start Free
SonarQube Community Build | DevOps platform integration | Azure DevOps integration | Azure Pipelines integration overview

Azure Pipelines integration overview

On this page

The Azure DevOps Extension for SonarQube Community Build is used to manage the integration of SonarQube Community Build with Azure Pipelines. It allows:

  • Adding the SonarQube Community Build analysis to your build pipeline.
  • Checking the SonarQube Community Build quality gate status in your Azure release pipeline.

For general information about the SonarQube Community Build analysis integration into a CI pipeline, see Integration into your CI pipeline.

Extension modes

The Azure DevOps Extension for SonarQube Server can run in one of the following modes depending on your project type:

The Azure DevOps Extension for SonarQube Server embeds the last compatible version of the SonarScanner for .NET and SonarScanner CLI, which is used by default. 

In Maven/Gradle mode, your build task downloads the SonarScanner for Maven or Gradle from the SonarSource binaries site.  

SonarQube tasks used in the pipeline definition

The SonarQube Server analysis is integrated into your Azure build pipeline by adding the following SonarQube tasks to your build pipeline definition:

  • Prepare Analysis Configuration
  • Run Code Analysis
    This task starts the SonarScanner for .NET or CLI. In the Maven/Gradle mode, it is replaced by a Maven or Gradle task that downloads the SonarScanner for Maven or Gradle, respectively.
  • Publish Quality Gate Result
    With this task, the quality gate status and a link to SonarQube Server are shown in the Azure Pipeline's Build Summary page. 

Analysis process overview

The figure below shows the analysis main steps with the example of a .NET project :

  1. The pipeline’s Run Code Analysis task starts the SonarScanner for .NET embedded in the Azure DevOps Extension for SonarQube Server. (The SonarScanner then downloads its binaries from the server as explained in Scanner engine and analyzers download in Analysis overview.)
  2. Once the analysis is complete, the scanner sends the results to SonarQube Server.
  3. SonarQube Server sends the quality gate status to Azure DevOps. This information is processed through the pipeline’s Publish Quality Gate Result task.

Was this page helpful?

© 2008-2025 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License