iOS Swift sonar scanner cannot recognize PR analysis

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    • latest
  • what are you trying to achieve
    • trigger a PR analysis and receive comments on Github Conversations
  • what have you tried so far to achieve this
    • already able to setup on CI with downloaded sonar-scanner-cli and trigger analysis on PR build.
    • the analysis marked as “master branch” on sonarcloud console, cannot receive any updates on Github Conversation

Hello @keithcml,

Which CI are you using? We can only automatically detect a PR analysis on some CIs, not all. If the CI is not supported you have to set the sonar.pullrequest.key parameter, see the documentation for more information.

1 Like

I am using bitrise

That is not one of the CI services we support. I suggest using the $BITRISE_PULL_REQUEST environment variable (documentation) exposed to set the sonar.pullrequest.key parameter when the environment variable is available.

I created a ticket where you can track the support for BitRise on our side.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.