Facing Issue in Prepare Analysis task - sonar scanner 4.18 & 4.19

When running the sonar prepare analysis task from classic-sonar-scanner-msbuild version 4.17, it is hitting the sonar server & performing all required operations like Fetching analysis configuration settings, Provisioning analyser assemblies for cs, Installing required Roslyn analyser.
And we we trigger the same from 4.18 & 4.19 versions, its not at all hitting the sonar server. It just creates the conf,out directory and does nothing.

Note: The same behavior is happening from Azure & command prompt execution. Using the same user account for all the versions mentioned here.

Hi @Devi,

When running the sonar prepare analysis task from classic-sonar-scanner-msbuild version 4.17

Do you mean the begin step?

It just creates the conf,out directory and does nothing.

Are there any errors displayed?

Thank you,
Costin

Hi Costin Zaharia,

Thanks for reply. It just creates the empty folder & no error message available.

Still this issue is available. Not able to run sonar from Azure & also from command prompt
Thanks,
Devi N

Hi @Devi,

what are the commands you are running to do the analysis?

It looks to me that only the begin step is executed. Can you please follow the steps from SonarScanner for .NET | SonarQube Docs and run the project build and end step too?

Thanks,
Costin