Sonarsource/Sonarcloud orb Fails to scan the project

Hi there:
I recently started working on a task to convert one of our projects to use Sonarcloud orb for circle ci. Prior to this, we managed a sonar docker image that we would use to connect to sonar and it seems to work for all of our projects. However, after trying to add the orb (GitHub - SonarSource/sonarcloud-circleci-orb: Support of SonarScanner CLI in CircleCI - followed the docs and added to circle Ci yml), the process seems to exit out with an error of

Parameter 'sonar.pullrequest.branch' is mandatory for a pull request analysis

Interestingly enough, the docker image process worked and our projects scanned. A few details explained below:

  • ALM used: GitHub
  • CI system used: Circle CI
  • Scanner command used when applicable (private details masked): sonarcloud/scan
  • Languages of the repository: python
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting):

Parameter 'sonar.pullrequest.branch' is mandatory for a pull request analysis

Hello @cmwaura,

This is the result of a bug on our end and we will be fixing this soon. You can follow the progress on this ticket.

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