I have a Bitbucket Cloud repository and an Azure DevOps build pipeline. In a PR build pipeline I get the following error message:
##[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]ERROR: Could not find the pullrequest with key '46'
ERROR: Could not find the pullrequest with key '46'
Building the main branch works without any problems.
I was able to find the pull request being queried and a 404 is being returned on an Azure DevOps URL… this shouldn’t happen for a Bitbucket Cloud repository even if the build pipeline is on Azure DevOps.
This smells a bit like this other thread. Can you take a look?
Yes, that was the solution. The project was bound to Azure DevOps. After recreating in a Bitbucket Cloud bound organization, the PR analysis works fine. Thank you!