A Cake Addin to break build if SonarQube Analysis fails!
The current working directory should be set to the directory where you ran the sonar scan SonarBegin and SonarEnd should have run successfully.
#addin "Cake.SonarResults"
Task("Sonar-AnalysisResults")
.IsDependentOn("Sonar-End")
.Does(() =>
{
SonarQubeResults(new SonarResultsSettings("http://sonarqube:9000"));
});