I already read https://sonarcloud.io/documentation/branches/overview/ and https://blog.sonarsource.com/sonarcloud-loves-your-build-pipeline, but i suspect I’m missing some basic stuff.
It seems that I need to provide different parameters for Sonar depends whether it’s branch or PR commit?
I.e.
if (PR)
sonar.pullrequest… =
…
else
sonar.branch.name =
…
TIA,
Vitaly
Hi Vitaly,
That’s correct. Currently there are different parameters that need to be passed for branches and pull requests. We intend to simplify this in the future.
2 Likes