We have a solution with C# projects building in Azure DevOps SonarCloud pipeline. However, after adding a C++ project to our solution our Sonar pipeline build now fails.
I`ve searched solution for this issue. To fix this was added build wrapper to our build:
Hi @a.synytsia and welcome to the community.
Could you please share the build-wrapper.log file that was generated while running the build-wrapper?
Thanks
Hi Fred_Tingaud
Im in progress to get that build-wrapper.log file. As it is in all in Azure DevOps. Im trying to figure out fow to get it from there.
Ill update as soon as Ill get it.
Hi all, sorry for long answer
Ive tested my implementation C# with C++ code and its woking if I exclude cpp files in Prepare Analysis Step using line (sonar.cpp.file.suffixes=true)
I know that its not correct but I just want to test scann with build-wrapper of old code without cpp files And its working.
The only difference is that in successful scan it has 0 cpp files to scann and in failed scann we have attempt to scann 5 cpp files (screenshots
Hi @a.synytsia ,
There is no restriction on scanning cpp files in SonarCloud.
The build-wrapper.log file would be more convenient for us to look into what is going wrong with your C++ files.