Use SonarQube quality gates to control your Visual Studio Team Services builds
Feb 11, 2016Bogdan Gavril

Summary
This post introduces the capability to fail Azure DevOps/TFS builds based on SonarQube quality gate violations. For SonarQube 5.3+, this is achieved via a checkbox in the 'SonarQube for MSBuild – Begin Analysis' build task. For earlier versions, the 'Build Breaker' plugin (for 4.x) or upgrading to 5.3+ is recommended. It advises against performing SonarQube analysis on pull request builds due to uploading uncommitted code results, and explains the importance of managing project versioning for accurate quality gate evaluation.