Configure SonarQube with .net project on Jenkins

Hi,

I am using SonarQube version 8.9 LTS
Trying to configure SonarQube integration for a .net project within a Jenkins build pipeline.
Build process completes without any visible error, but at the end throws an “Scanner did not complete successfully” message - do you have any suggestion to help figure out what might be problem?
See below last lines of log output:

Thanks,
Emil

13:48:11 13:48:11.050 INFO: ------------- Run sensors on project 
13:48:11 13:48:11.142 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing 
13:48:11 13:48:11.143 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because one of the required properties is missing 
13:48:11 13:48:11.144 DEBUG: 'C# Unit Test Results Import' skipped because one of the required properties is missing 
13:48:11 13:48:11.145 DEBUG: 'VB.NET' skipped because there is no related file in current project 
13:48:11 13:48:11.146 DEBUG: 'VB.NET Tests Coverage Report Import' skipped because there is no related file in current project 
13:48:11 13:48:11.146 DEBUG: '[Deprecated] VB.NET Integration Tests Coverage Report Import' skipped because there is no related file in current project 
13:48:11 13:48:11.146 DEBUG: 'VB.NET Unit Test Results Import' skipped because there is no related file in current project 
13:48:11 13:48:11.147 DEBUG: 'Java CPD Block Indexer' skipped because there is no related file in current project 
13:48:11 13:48:11.147 DEBUG: Sensors : C# -> C# Tests Coverage Report Import -> Zero Coverage Sensor 
13:48:11 13:48:11.147 INFO: Sensor C# [csharp] 
13:48:11 13:48:11.149 WARN: No protobuf reports found. The C# files will not have highlighting and metrics. You can get help on the community forum: https://community.sonarsource.com 
13:48:11 13:48:11.155 INFO: Importing 2 Roslyn reports 
13:48:11 13:48:11.155 DEBUG: Processing Roslyn report: D:\jenkins\workspace\SonarQube\SonarQubeAnalysis3\StandAloneApplications\\bin\Debug\netcoreapp2.0\project.Core.dll.RoslynCA.json 
13:48:11 13:48:11.614 INFO: ------------------------------------------------------------------------ 
13:48:11 13:48:11.614 INFO: EXECUTION FAILURE 13:48:11 13:48:11.614 INFO: ------------------------------------------------------------------------ 
13:48:11 13:48:11.615 INFO: Total time: 2:38.126s 13:48:11 13:48:11.758 INFO: Final Memory: 25M/118M 
13:48:11 13:48:11.758 INFO: ------------------------------------------------------------------------ 
13:48:11 13:48:11.758 ERROR: Error during SonarScanner execution 13:48:11 Process returned exit code 1
13:48:11 The SonarQube Scanner did not complete successfully
13:48:11 13:48:11.922  Post-processing failed. Exit code: 1
13:48:19 WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeed?
13:48:19 ERROR: Execution of SonarScanner for MSBuild failed (exit code 1)
13:48:19 Finished: FAILURE

Hello,

Please give us the following version information:

And we’ll need the logs:

  • please give us the verbose output of the scanner commands (please run SonarScanner.MSBuild.exe begin /k:“MyProject” /d:sonar.verbose=true as the begin step, and please attach the output of the BEGIN and END steps)
  • please give the output of running MSBuild in verbose mode (/v:d)

Also, please tell us:

  • what are the commands you are running to do the analysis?
  • are you running all commands from the same folder?

In addition, please see the following guides:

 
Ann

Hi Ann,

These are the values:
SonarQube Scanner:

  • Jenkins plugin: 2.12
  • Scanner for MSBuild 4.10.0.19039

MSBuild:2017

Commands to run the analysis are:
image

Regarding the analysis output - sample that I’ve sent on original message was generated with sonar:verbose=true flag. If needed I can send you entire log file.

Thanks,
Emil