Sonar scanner finishes successfully but hangs

Hi,

Wondering if someone could help me with this please.

We use sonar scanner for .NET (SonarScanner for MSBuild 5.5.3.43281 - .NET Fwk 4.6) which successfully scans/builds but after each sonar scanner CLI has finished, there always seems to be a period where it just hangs and does not look like it is doing anything.

For example, below is extracted from our jenkins logs and you can see there is a 10+ minute gap before it proceeds.

12:01:55  The SonarScanner CLI has finished
12:01:55  12:01:55.86  Post-processing succeeded.
12:13:28  [File exists] check if file exists [build-api.targets]
12:13:28  Run condition [File exists] enabling perform for step [Build a Visual Studio project or solution using MSBuild]

Just wondering what is it doing in this period or is there a way to get it to output what its doing?

Have verified the delay only occurs if we include sonar scanner as part of the build and have also set verbose to true but it has not output any additional info in that period.

Thanks in advance!

@wai

Hello and welcome to our community.
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)
And also please give the output of running MSBuild in verbose mode ( /v:d )

Hi @Caba_Sagi ,

Please see attached logs. I’ve mainly included the output between the begin and end analysis steps as mentioned with msbuild verbosity also set to detailed.

As with the original post, see the end of the log where there is a 10+ minute wait period after sonar scanner has finished.

jenkins-logs.zip (856.7 KB)