0

We are working on the migration of TFS 2015 towards TFS 2017.

We update the new SonarQube extension (4.0.2) as well as the plugin on the server for C # code (sonar-csharp-plugin-6.6.0.3969).

We are checking that the definitions of the builds with the previous tasks of sonarqube (Sonarquebe for MSBuild-Begin Analysis and SonarQube for MSBuild-End Analysis) continue to work correctly, and then we can make a modification and update plan for the new tasks proposed by the extension.

We encountered a problem when generating the build .:

## [error] The C # plugin installed on the SonarQube server is not compatible with the SonarQube analysis agent (i.e. the MSBuild.SonarQube.Runner.exe, or the build automation task). Either check the compatibility matrix or get the latest versions for both.
2018-03-19T17: 15: 08.2276942Z ## [error] Pre-processing failed. Exit code: 1 "

Does anyone know how I can solve this error?

rene
  • 41,474
  • 78
  • 114
  • 152

1 Answers1

0

Based on the compatibility matrix sonar-csharp-plugin-6.6.0.3969 is not compatible with SonarQube extension (4.0.2) (Scanner for MsBuild 4.0.2)

Please see the Compatibility - SonarCloud Extension for TFS-VSTS and Compatibility - SonarQube C# plugin for details.

In your scenario, you can try below ways to fix that:

enter image description here

Andy Li-MSFT
  • 28,712
  • 2
  • 33
  • 55
  • Thank you very much for your response, I will try to do these steps, have a nice day :) – Gloria Gallego Mar 20 '18 at 13:18
  • Hi, should I change MSBuild on the TFS server or on the SonarQube server? I'm new on TFS and I do not know the Path where this is on. – Gloria Gallego Mar 20 '18 at 13:35
  • @GloriaGallego You can try update the C# plugin to 6.7+ first. based on the matrix, it should be the best way. It that works for you, then you can try the second way which downgrade to old version on the **SonarQube server**. See [Install the SonarScanner for MSBuild](https://docs.sonarqube.org/display/SCAN/Install+the+SonarScanner+for+MSBuild) to install it. – Andy Li-MSFT Mar 21 '18 at 02:04
  • @GloriaGallego Have you resolved the issue? Any update? If that works for you, please [Accept it as an Answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work), This can be beneficial to other community members reading this thread. – Andy Li-MSFT Mar 26 '18 at 06:51