Integrating SonarQube with Azure Repos & Azure DevOps CI pipeline (Angular project)

Versions in use

  • SonarQube Server / Community Build: SonarQube Community Edition 26.2.0

  • SonarScanner: Not yet installed / planning to use (open to recommendation)

  • Plugins: Default plugins bundled with SonarQube (no additional plugins installed yet)

  • CI/CD platform: Azure DevOps Pipelines

  • Project type: Angular (TypeScript)

SonarQube deployment method

  • Deployment type: Zip installation

  • Operating system: Windows

  • Status: SonarQube server is up and accessible via browser (dashboard working)

What I am trying to achieve

  • Integrate SonarQube analysis into an Azure DevOps CI pipeline

  • Automatically run code analysis on every check-in to the main branch

  • Publish results to the SonarQube dashboard

  • Enforce Quality Gates (fail or warn the pipeline if conditions are not met)

What I have tried so far

  • Installed and started SonarQube locally using zip distribution

  • Verified the SonarQube dashboard is accessible and operational

  • Created an Angular project stored in Azure Repos

  • Reviewed SonarQube documentation but need clarity on:

    • Best integration approach for Angular + Azure DevOps

    • Whether to use SonarQube Azure DevOps extension or SonarScanner CLI

    • Recommended pipeline YAML configuration

Hi,

When you created your project through the New Project wizard on the Projects page, did it not guide you through these choices?

 
Ann