Sonar Cloud and bitbucket - Illegal state: the pull request '8156' was expected to have a base branch

Sonar Cloud give the error Illegal state: the pull request ‘8156’ was expected to have a base branch.
But base branch there is
-Dsonar.pullrequest.base=feature/SGB-13727-delete-favourite-numbers

Hey there.

  • Can you include the full content of bitbucket-pipelines.yml file?
  • When running in Bitbucket pipelines, you should almost never need to include `sonar.pullrequest.* parameters, as the pipe is able to pick these up automatically from the environment. Any attempt at manual configuration (which can be error-prone) shuts off the auto-configuration