We have successfully used SonarCloud, integrated with repositories on Azure Devops. We also managed to get PR integration working, using SonarQube/SonarCloud Azure Pipelines Extension. This works great when building on the buildhost itself. Quality gates are submitted using SonarCloudPublish@1 task.
Because most of our projects build within docker, we want to meet the requirement to run sonarscanner within docker build layers. So we created a dockerfile that installs and uses the dotnet-sonarscanner, which works and results show up on sonarcloud dashboard. However, quality gates are not submitted back to azure devops.
We have not found the equivalent cli shell command for SonarCloudPublish@1 task, which we can incorporate in our dockerfile. Are you aware of a working solution for our situation?