Sonar-scanner-vsts 4.5.1 breaks the build step

scanner

(Roman) #1

Hi,

we have quite complex solution with quite complex build in VSTS (DevOps now). I have added sonar steps to perform sonar analyze (“Prepare analysis with SonarQube” and “Run Code analysis”).
All was runing fine on the version SonarQube extension 4.4.1.

Now once the new version was released (SonarQube extension 4.5.1) the build steps starts to fail -> one project is not going to build or to be exact:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4172,5): Error MSB3030: Could not copy the file “obj\Release<project name>.dll” because it was not found.
Process ‘msbuild.exe’ exited with code ‘1’.

this is the only error message I have from the solution build step.

If I disable the “Prepare analysis with SonarQube” step the build ends successfully without any error.

I’m quite out of ideas how to fix the situation:

  • logs did not show anything obvious (they are quite big 20 MB)
  • is there any way how to go back on version “4.4.1”?
  • was there any major change in the targets which are added to the build step between the version 4.4.1 and 4.5.1? - this seems the culprit for me now - but how to investigate?
  • do you have any ideas which direction I should go and what can I try?

Thx for any suggestions,
Roman