We use VSTS build with standard SonarQube build steps:
- SonarQube for MsBuild - Begin Analysis
- ... build
- SonarQube for MsBuild - End Analysis
Some time after build I can see Analysis results in SonarQube - whether it Passed or Failed quality gate. But the VSTS build is successful even if quality gate is Failed.
Is there a way to fail a VSTS build if quaility gate is failed?
Following this: http://docs.sonarqube.org/display/SONAR/Breaking+the+CI+Build I've tried looking for report-task.txt file, but I can't see it anywhere.
I can probably just run MSBuild.SonarQube.Runner.exe as command-line build step, as described here: http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner+for+MSBuild#AnalyzingwithSonarQubeScannerforMSBuild-AnalyzingfromtheCommandLine
But I thought I should first try standard Build Steps for SonarQube