circle-exclamation
This version of the SonarQube documentation is no longer maintained. It relates to a version of SonarQube that is not active.

SonarQube extension for Azure DevOps

The SonarQube extension for Azure DevOps makes it easy to integrate analysis into your build pipeline, allowing the analysis of all supported languages.

chevron-rightSonarScanner for Azure DevOps — 8.0.0 | Issue Trackerarrow-up-righthashtag

8.0.0 2025-12-08 Update scanner for .NET to 11.0.0 and CLI to 8.0.0 Downloadarrow-up-right Release notesarrow-up-right


7.4.2 2025-11-05 Update marketplace documentation Downloadarrow-up-right Release notesarrow-up-right


7.4.1 2025-08-07 Update tasks to Node 20+ Downloadarrow-up-right Release notesarrow-up-right


7.3 2025-04-23 Bump Scanner for .NET to 10.1.2.114627 Downloadarrow-up-right Release notesarrow-up-right


7.2 2025-04-09 Bump Scanner for .NET to 10.1.0.110937 Downloadarrow-up-right Release notesarrow-up-right


7.1.1 2024-11-26 Bump Scanner for .NET to 9.0.2.104486 Downloadarrow-up-right Release notesarrow-up-right


7.1.0 2024-11-19 Align with SonarQube rebranding Downloadarrow-up-right Release notesarrow-up-right


7.0.4 2024-11-12 Fix PR decorations for dark mode Downloadarrow-up-right Release notesarrow-up-right


7.0.3 2024-10-29 Bump Scanner for .NET 9.0.1 & Fix missing translation messages Downloadarrow-up-right Release notesarrow-up-right


7.0.2 2024-10-22 Fix windows path parsing coming from predefined variables correctly in extraProperties Downloadarrow-up-right Release notesarrow-up-right


7.0.1 2024-10-21 Fix .NET Framework scanner embedding logic. Downloadarrow-up-right Release notesarrow-up-right


7.0.0 2024-10-21 .NET analysis defaults to Scanner for .NET v9 with multi-language analysis. Embeds scanner-CLI v6.2.1 with JRE auto-provisioning. Downloadarrow-up-right Release notesarrow-up-right


6.2.0 2024-07-01 Default scanners are embedded for offline use Downloadarrow-up-right Release notesarrow-up-right


6.1.0 2024-06-18 Scanner CLI now defaults to v6 Downloadarrow-up-right Release notesarrow-up-right


6.0.1 2024-06-10 Deprecate the old SonarQube v5 tasks with proper warnings Downloadarrow-up-right Release notesarrow-up-right


6.0.0 2024-05-31 New V6 task with configurable scanner version, Drop of V3 tasks, bump of agent requirements for V4 tasks Downloadarrow-up-right Release notesarrow-up-right


5.20.0 2024-04-15 Support for JDK 21 and Bump to Scanner for .NET 5.15.1 (fix for .NET 8 on MacOS) Downloadarrow-up-right Release notesarrow-up-right


5.19.2 2024-03-11 Ignore specified JDK 11 if SonarQube does not support it Downloadarrow-up-right Release notesarrow-up-right


5.19.1 2024-03-04 Reintroduce compatibility for v4 tasks with node6 Downloadarrow-up-right Release notesarrow-up-right


5.19.0 2024-01-24 PRs show issues that will be fixed by the merge & Accepted, Retry mechanism during publish polling to tolerate unstable network conditions. Downloadarrow-up-right Release notesarrow-up-right


5.18.4 2023-11-28 Bump MSBuild Scanner to 5.15 Downloadarrow-up-right Release notesarrow-up-right


5.18.3 2023-11-20 Maximize proxy compatibility with tasks <5.18.0 Downloadarrow-up-right Release notesarrow-up-right


5.18.2 2023-11-17 Adjust PR decorations to Clean Code Taxonomy, Migrate from request to node-fetch, Support Azure proxy, Fix vulnerabilities Downloadarrow-up-right Release notesarrow-up-right


5.17.2 2023-10-18 Revert request library Downloadarrow-up-right Release notesarrow-up-right


5.16.0 2023-10-17 Fix Mend vulnerabilities & Dependencies bump Downloadarrow-up-right Release notesarrow-up-right


5.15.0 2023-06-14 Fix computation and retrieval of report-task.txt + Let user choose which java version to use for analysis Downloadarrow-up-right Release notesarrow-up-right


5.14.0 2023-06-13 Improved support for SQ >= 10.0, Change computation of metadata file path, added detection of JAVA_17 environment variable Downloadarrow-up-right Release notesarrow-up-right


5.13.0 2023-04-27 Support for sonar.token, incremental analysis outside Azure, better error message Downloadarrow-up-right Release notesarrow-up-right


5.12.0 2023-03-17 Supports for SonarCloud incremental analysis cache Downloadarrow-up-right Release notesarrow-up-right


5.11.1 2023-02-02 Azure DevOps extension is compatible with SonarQube 10.0 Downloadarrow-up-right Release notesarrow-up-right


5.11.0 2023-02-02 Update scanner for .NET to 5.11.0 Downloadarrow-up-right Release notesarrow-up-right


5.10.0 2023-01-23 Bump Scanner for .NET to 5.10.0 and ScannerCLI to 4.8.0 Downloadarrow-up-right Release notesarrow-up-right


5.9.0 2023-01-03 Bump Scanner for .NET to 5.9.2 Downloadarrow-up-right Release notesarrow-up-right


5.8.1 2022-10-11 Fix task status spelling (CANCEL -> CANCELED) Downloadarrow-up-right Release notesarrow-up-right


5.8.0 2022-09-05 Bump Scanner for .NET to 5.8.0 Downloadarrow-up-right Release notesarrow-up-right


5.7.0 2022-08-09 Bump Scanner for .NET to 5.7.2 and ScannerCLI to 4.7.0 Downloadarrow-up-right Release notesarrow-up-right


5.6.1 2022-07-06 Revert Scanner for .NET to 5.6.0 and ScannerCLi to 4.6.2 Downloadarrow-up-right Release notesarrow-up-right


5.6.0 2022-07-05 Bumped Scanner for .NET to 5.7.1 and Scanner CLI to 4.7.0 Downloadarrow-up-right Release notesarrow-up-right


5.5.0 2022-06-15 Bumped Scanner for .NET to 5.6.0 Downloadarrow-up-right Release notesarrow-up-right


5.4.0 2022-02-16 Bumped Scanner for .NET to 5.5.3 Downloadarrow-up-right Release notesarrow-up-right


5.3.0 2022-02-07 Bumped Scanner for .NET 5.5.0 Downloadarrow-up-right Release notesarrow-up-right


5.2.0 2022-02-07 Bump Scanner for .NET 5.4.1 Downloadarrow-up-right Release notesarrow-up-right


5.1.1 2021-11-30 Revert part of the change for SONARAZDO-264 Downloadarrow-up-right Release notesarrow-up-right


5.1.0 2021-11-30 Fix SSF-194, Bump Scanner for .NET 5.4.0 Downloadarrow-up-right Release notesarrow-up-right


5.0.0 2021-09-28 New Major Version for Azure Devops 2019 only, that resolves issues with LetsEncrypt Certs. For TFS2017/2018 use version 4.23.1 Downloadarrow-up-right Release notesarrow-up-right


4.23.1 2021-10-08 Rollback changes to Node handler and az pipeline task due to incompabilities with TFS 2017/2018 Downloadarrow-up-right Release notesarrow-up-right


4.23 2021-10-01 Change to Node10 execution handler to fix issues with LetEncrypt Certs Downloadarrow-up-right Release notesarrow-up-right


4.22 2021-09-20 Updated plugin SDK from .NET Core 2 to .NET Core 3 + Bump SonarScanner for .NET v.5.3.1 Downloadarrow-up-right Release notesarrow-up-right


4.21 2021-06-24 Bump SonarScanner for .NET v.5.2.2 Downloadarrow-up-right Release notesarrow-up-right


4.20 2021-04-30 Bug fix + Bump SonarScanner for .NET and ScannerCLi versions Downloadarrow-up-right Release notesarrow-up-right


4.19 2021-04-09 Support for Scanner for .NET 5.2 (Analyze test code) Downloadarrow-up-right Release notesarrow-up-right


4.18 2021-03-09 Support for .NET 5, support for solo .NET Core project (without .sln) Downloadarrow-up-right Release notesarrow-up-right


4.17 2020-11-11 Support for .NET 5, support for solo .NET Core project (without .sln) Downloadarrow-up-right Release notesarrow-up-right


4.16 2020-11-10 Support for .NET 5, support for solo .NET Core project (without .sln) Downloadarrow-up-right Release notesarrow-up-right


4.12 2020-11-05 Support for .NET 5, support for solo .NET Core project (without .sln) Downloadarrow-up-right Release notesarrow-up-right


4.11 2020-06-29 Support FIPS compliant cryptographic algorithm, update to SonarScanner 4.4 and SonarScanner for MSBuild 4.10 Downloadarrow-up-right Release notesarrow-up-right


4.10 2020-05-05 Improve detection of duplicated coverage reports, update to SonarScanner 4.3 and SonarScanner for MSBuild 4.9 Downloadarrow-up-right Release notesarrow-up-right


4.9 2020-01-29 Enable scanner execution when only .NET Core 3 is installed, update to SonarScanner 4.2 and SonarScanner for MSBuild 4.8 Downloadarrow-up-right Release notesarrow-up-right


4.8.1 2019-10-15 Bug fix Downloadarrow-up-right Release notesarrow-up-right


4.8 2019-09-16 Several bug fixes, update to SonarScanner 4.1 and SonarScanner for MSBuild 4.7.1 Downloadarrow-up-right Release notesarrow-up-right


4.7.2 2019-08-14 Bug fix Downloadarrow-up-right Release notesarrow-up-right


4.7.1 2019-08-14 Bug fix Downloadarrow-up-right Release notesarrow-up-right


4.7 2019-08-13 Fix a bug on the Publish Quality Gate Result task Downloadarrow-up-right Release notesarrow-up-right

circle-info

By now, you might be aware of the improvements made to the Sonar brand.

  • From version 10.8 and newer, SonarQube will be called SonarQube Server.

  • SonarCloud is now known as SonarQube Cloud.

  • and SonarLint is now known as SonarQube for IDE.

For more information, please check out our press releasearrow-up-right on the new names!

The SonarQube Extension for Azure DevOpsarrow-up-right makes it easy to integrate analysis into your build pipeline. The extension allows the analysis of all languages supported by SonarQube.

Requirements

SonarQube extension for Azure DevOps v7.x.x

Allowable values for the scannerMode required propertyarrow-up-right have changed. Please use the following in your @7 tasks:

  • dotnet for the SonarScanner for .NET

  • cli for the SonarScanner CLI

  • other to integrate with Maven or Gradle

To take advantage of caching your SonarScanner version, there are a few required inputs for your pipeline. Please see the Caching your SonarScanner downloadarrow-up-right article for details.

Version @6 tasks were deprecated in v7.0 and will be dropped in a subsequent release.

Compatibility

The SonarQube extension for Azure DevOps 6.x is compatible with:

The SonarQube extension for Azure DevOps 5.x is compatible with:

  • Azure DevOps Server 2019 (including Express editions)

  • Azure DevOps Server 2020 (including Express editions)

  • Azure DevOps Server 2022

  • Azure DevOps Services

The SonarQube extension for Azure DevOps 4.x is compatible with:

  • TFS 2017 Update 2+ (including Express editions)

  • TFS 2018 (including Express editions)

Analysis

For information on setting up analysis with the SonarQube Extension for Azure DevOps, see the Azure DevOps integration page.

Previous versions

As new scanner versions are released, previous requirements and/or planned deprecations will be listed here.

SonarQube extension for Azure DevOps v6.2.x

The current versions of the Using the scanner and SonarScanner CLI scanners are embedded and depending on your configuration, some additional setup may be required.

If you want to specify the exact .NET or CLI scanner version, use the the msBuildVersion and cliVersion properties. Please check the Using the Prepare Analysis Configuration taskarrow-up-right on the Azure DevOps integration page for details.

When specifying a particular scanner version, internet access is required by the pipelines calling the .NET or CLI scanners:

  • Access to github.comarrow-up-right is required to download the SonarScanner for .NET. The GitHub URL and its HTTP redirect, objects.githubusercontent.com, should be whitelisted.

  • Access to binaries.sonarsource.comarrow-up-right is required to download the SonarScanner CLI. The Sonar binaries should be whitelisted.

For users running on-premise or using self-hosted agents, the minimum agent version for SonarQube v6 tasks is 3.218.0.

in v6.0.1

  • Version @5 tasks were deprecated in v6.0.1 and will be dropped in a subsequent release.

SonarQube extension for Azure DevOps v5.x.x

  • Version @5 tasks were deprecated in v6.0.1 and will be dropped in a subsequent release.

  • For users running on-premise or using self-hosted agents, the minimum agent version for SonarQube version @5 tasks is 2.114.0.

Last updated

Was this helpful?