We have a monorepo in Azure Devops and want to have analysis comments in our PRs. We have enabled the option in Administration/General Settings/General and this works as we would like, allowing for PR comments from each project in the Monorepo. On the General tab it states that you can, as an alternative, use Key: sonar.project.monorepo.enabled so we have added sonar.project.monorepo.enabled=true to our pipeline in the extraProperties section of the SonarPrepare task but it is not doing the same thing with each analysis overwritting the previous. I have not been able to find any documentation on this property. Is this how it should work or are there any caveats to using this property?
Hi @chriscol and welcome to the community.
This property is internal and won’t be read through the Scanner.
The only way to do so is to activate it through the UI, like you did.