Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Relationship between SonarQube Runner and SonarQube.MSBuild.Runner

Regarding the announcement of SonarQube integration with MSBuild and Team Build, can anyone advise on the relationship between SonarQube Runner and SonarQube.MSBuild.Runner? I'm unclear whether SonarQube.MSBuild.Runner replaces SonarQube Runner or whether it sits on top of it.

like image 286
Graham Smith Avatar asked Feb 09 '23 19:02

Graham Smith


1 Answers

@Techtwaddle is correct: the MSBuild.Runner invokes the sonar-runner.

The MSBuild.Runner v0.9 does the following:

  • fetches configuration settings from the SonarQube server;
  • gathers information during the MSBuild phase;
  • generates a sonar-project.properties file;
  • invokes the sonar-runner to carry out further analysis.

Some of the analysis is now performed before calling the sonar-runner. For example, FxCop analysis is now happens as part of the MSBuild phase rather than being invoked from the sonar-runner.

Currently, you have to manually install both the sonar-runner and the MSBuild.Runner. Work is planned to change this so you will only need to install the MSBuild.Runner. See http://jira.sonarsource.com/browse/SONARMSBRU-42.

like image 199
duncanp Avatar answered Feb 14 '23 08:02

duncanp