When runnning a pull request against an epic branch (commonly we run against “develop”), sonar cloud complains in the bitbucket pipeline with an error message that such a branch would not exist on the server.
ERROR: Error during SonarQube Scanner execution ERROR: Pull request with branch does not exist on server: epic-foo-bar
Which puzzles me a bit. Which server is that? Bitbucket for sure has that branch and the command line contains a lot of configuration:
sonar-scan: \ sonar-scanner \ -Dsonar.pullrequest.key=1234 \ -Dsonar.pullrequest.base=epic-foo-bar \ -Dsonar.pullrequest.branch=test-my-epic-foo-bar-blue \ -Dsonar.pullrequest.provider=Bitbucket \ -Dsonar.pullrequest.bitbucket.repository=vendor/reponame
Me is a bit puzzled here. Isn’t it possible to use different branches as pull request targets?