SonarScanner for MSBuild 4.3.1
I am using SonarScanner for MSBuild to analyse a Visual Studio solution containing many C# projects. I am using the instructions at [https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild].
There are broadly three steps:
- SonarScanner.MSBuild.exe begin
- SonarScanner.MSBuild.exe end
Step one adds hooks to the MSBuild installation on the build agent.
If step 2 fails, how can I remove the hooks from the MSBuild installation so that other builds not involving SonarQube can go ahead?
I cannot find anything in the documentation that describes how to handle a failure during step 2 of the process.
I was expecting to find a ‘clear’ option to go alongside ‘begin’ and ‘end’.
Is it always necessary to run step 3 after successful execution of step 1, even if step 2 fails?