Hey all,
We use Azure Devops with docker pipelines in our PRs to test for quality of our C# .NET code.
This has always worked smoothly, with sonarcloud only detecting code smells and lack of code coverage on newly written code.
However, a couple weeks ago, sonarcloud had an outage which forced us to bypass this quality gate and manually complete a couple PRs.
Ever since then, sonarcloud seems to include code of those completed PRs in our quality gate of the new PRs that don’t even touch that code.
We have this in the docker file:
/d:sonar.pullrequest.base=${PR_TARGETBRANCH} \
Which is set in an argument like --build-arg PR_TARGETBRANCH=$(System.PullRequest.TargetBranch)
Anyone ever had this problem as well and/or knows a solution? I know in the past we faced this issue once as well, but I do not remember how it was resolved, sadly.
Thanks in advance for answering. If any more information is needed to be able to help me out, let me know!