I created a basic test project on SonarCloud with Circle CI. Following the tutorial on the documentation, it worked perfectly, both on scanning the default branch and any PR.
Now I am trying to do the same thing in a “real” project, but this time I have this error.
ERROR: Error during SonarQube Scanner execution
ERROR: Parameter ‘sonar.pullrequest.branch’ is mandatory for a pull request analysis
Below is the content of my circle CI conf file:
jobs: build: docker: - image: circleci/php:7.3.9-fpm steps: - checkout - sonarcloud/scan orbs: sonarcloud: email@example.com
Does someone have ever faced this issue. What could be the element(s) that could cause this issue?