While testing and reviewing logs in an attempt to speed up this process, I noticed the following:
12:27:41.153 Incremental PR analysis: Base branch parameter was not provided.
12:27:41.153 Cache data is empty. A full analysis will be performed.
Then I reviewed this page:
If I run the process by manually adding the sonar.pullrequest parameters, the pull request analysis seems to work as expected. However, I don’t know how to get this to work automatically. As usual, documentation is very lacking.
Any ideas on what I might do to get this setup to work automatically with BitBucket?
Since those values should be filled in from the environment, I suspect this is about your checkout, and the underlying data available on your project/PR in the environment.
Can you share what/how you check your project out for analysis?
Also, to make sure, you are using Bitbucket Pipelines, right?
Actually, we just switched over to BitBucket Cloud this week, so I need to redo the setup. If things continue to not work as desired, I will post my setup.
This is purely informational & probably disappeared on subsequent analyses, right?
This is the part that’s about your checkout. Those things are read from the environment, so what this message tells us is that the PR’s target branch couldn’t be read from the environment.
What you’ve provided about your pipeline doesn’t include the checkout. But the docs may help you sort it out.