Hello, we are stuck within the migration from Bamboo to Azure DevOps.
We are using Sonarqube Developer edition 184.108.40.206595.
The static code analysis and coverage where previously done within our bamboo build plans.
As we are now migrating to AzureDevOps we tried to get the analysis from there back to the sonar projects.
So in SonarQube, we changed the settings for the project to refer to the AzureDevOps as DevOps Platform. Within our pipeline we have the following steps:
- Checkout the repo
- SonarQubePrepare@5 (settings: scannerMode: MSBuild, projectKey:<setAccordingOurSonarSettings, and some extra Properties, like the project base dir and the sonar.cs.opencover.reportsPaths)
- CmdLineQ2 to run the unit tests with coverage:
\OpenCover.Console.exe -returntargetcode -register:Path64 -output:CodeCoverage.xml -mergebyhash "-target:C:\Build_software\NUnit.Console-3.7.0\nunit3-console.exe" "-targetargs:\nunit-configuration.nunit --result=TestResults/SonarTestResult-UnitTests.xml"
(I also tried it without the whole Unit testing to get only the other analysis back but the behaviour is more or less the same)
Within the logs of the analyze step, I see that the analyzed files are found and it looks like everything is fine.
BUT within the SoarQubePublish, the warning appears:
##[warning]No analyses found in this build! Please check your build configuration.
I’m not sure what I can do to fix it… It seems like the publish searches for analysis files in the _temp folder of the agent, and the analyze step is working in the build directory.
Any Ideas how to solve it?