Details
- ALM used - Bitbucket Cloud
- CI system used - Circle CI
- Languages of the repository - Kotlin, Java
Hi everyone,
I hope this message finds you well. I’m reaching out because I’m encountering some strange behaviour with our setup involving Bitbucket, CircleCI, and Sonar Cloud.
Here’s the issue I’m facing:
- When I push a new branch to the server for the first time, CircleCI triggers the pipeline as expected, and the Sonar task runs. However, although I can see my branch listed under the “Branches” section in the Sonar UI, when I click on it, I don’t see any analysis results.
- Similarly, if I push another commit to the same branch, the behaviour is exactly the same. The pipeline triggers, the Sonar task runs, and in the Sonar Cloud UI, I see “Last analysis 5 minutes ago,” but there are no analysis results displayed - just a dash in the coverage section.
- When I create a pull request, the pipeline doesn’t trigger, and Sonar doesn’t run. However, in Bitbucket, I see empty data from Sonar Cloud, even though Bitbucket displays this as a green light for merge.
- Subsequently, when I make another commit to the same branch, which is now under a pull request, the pipeline triggers, Sonar runs, and the Sonar data appears - coverage, issues, etc.
Could anyone offer some guidance on what might be misconfigured here? Why are there no data upon the initial push of a new branch to the server?
Any help or suggestions would be greatly appreciated.
Thank you in advance!