Where solution.sln is coded in c++ and has diferent vcprojs.
When we launch the pipeline, two first task work well, but when Run Code Analysis task is running happens an error:
##[error]: Error during SonarScanner Execution ERROR: Error during SonarScanner execution ##[error]java.lang.IllegalStateException: java.nio.file.NoSuchFileException: $(Build.SourcesDirectory)\sonar\build-wrapper-dump-json
It’s important to said that json file doesn’t exist in that folder, I have put different folders but that file never create during the build task.
On the other side, if I do the steps with with SonarScanner via command line in local, the measures was correctly analyzed and published in SonarQube server.
Hello @monica, and thank you for the files you have provided to me. Here are the things I can see in them:
You only provided me the log for the analysis step, I don’t see how you run the Powershell script.
In the JSON corresponding to the configuration of the task, I could not see any build wrapped by the build wrapper either. The only PowerShell present was some placeholder
You set the build wrapper path to C:\\Program Files (x86)\\sonarTools\\build-wrapper-win-x86\\sonar. Since this is a path that should be written to, putting it in a folder that is usually only accessible in admin mode might be a cause of problems.