SonarQube 6.4 and C# plugin 6.0 (build 2033) - Fails.

365 views
Skip to first unread message

petercul...@gmail.com

unread,
Jun 27, 2017, 12:11:59 PM6/27/17
to SonarQube
Hello all,

I just upgraded to SonarQube 6.4 (from 6.3) and my Jenkins MS Build tasks are failing.  I checked everything and all seems good.  I had also upgraded my C# plugin from 5.11 (build 1761)  to 6.0 (build 2033).

Downgrading the C# plugin back to 5.11 (build 1761) everything works ok.  

workspace] $ "C:\Program Files (x86)\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQubeScannerMSBuild\MSBuild.SonarQube.Runner.exe" begin /k:sxewp /n:sxewp /v:11.0.0.0 /d:sonar.host.url=http://usalvwcodegn

SonarQube Scanner for MSBuild 2.1

Default properties file was found at C:\Program Files (x86)\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQubeScannerMSBuild\SonarQube.Analysis.xml

Loading analysis properties from C:\Program Files (x86)\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQubeScannerMSBuild\SonarQube.Analysis.xml

Pre-processing started.

Preparing working directories...

Checking for updates...

Could not find a file on the SonarQube server. Url: http://sonarqubeserver/static/csharp/SonarQube.MSBuild.Runner.Implementation.zip

Failed to update the SonarQube Scanner for MSBuild binaries. Check the server url, verify that the C# plugin is correctly installed on the SonarQube server and that the SonarQube server has been restarted.

Pre-processing failed. Exit code: 1

ERROR: Execution of SonarQube Scanner for MSBuild failed (exit code 1)



Amaury Leve

unread,
Jun 27, 2017, 12:37:47 PM6/27/17
to petercul...@gmail.com, SonarQube
Hi,

The message is indeed confusing.
SonarC# 6.0 dropped the support for MsBuild 12 and has a few API breaking changes (hence the major version bump) and requires Scanner for MsBuild 3.0+.

If you can't update the version of the Scanner you will have to stick with the previous version.

Cheers,
Amaury

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/46f03444-d877-4c8f-893e-223bc539b03f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Amaury Levé | SonarSource

Software Developer - .Net Team

http://sonarsource.com


Are you using SonarLint in your IDE? 

petercul...@gmail.com

unread,
Jun 27, 2017, 1:51:38 PM6/27/17
to SonarQube, petercul...@gmail.com
Thanks Amaury for the very quick reply.  That gives me something to go after.  I'm using the Jenkins plug in and I'm up to date on that version.  But let me see if I can also update the MSBUILD scanner.

petercul...@gmail.com

unread,
Jun 27, 2017, 4:17:06 PM6/27/17
to SonarQube, petercul...@gmail.com
Thanks again Amaury.  That worked fine for me.  It's been a while since I did the install in Jenkins so I uplifted our scanners to the latest version available.  
Reply all
Reply to author
Forward
0 new messages