No, all screenshots and logs I shared was running the analysis in a feature branch (short live branch) In the screenshot above that would be “add-sonar-code-inspection” That is a feature branch out of the default branch. Bitbucket pipelines run just fine, and the logs seems to indicate that also Sonar is doing its job correctly, so I am not sure where is the data getting lost.
Thanks
Thanks for the help. So when we merged the branch with the bitbucket-pipeline changes into our main branch, we were able to see the report in SonarCloud, this is working just fine.
Unfortunately, we created a new feature branch and we are still not seeing any results in SonarCloud.
By feature branch, you mean the ones we call ‘long-living’ branches in our documentation ?
If yes, by default, the name of the branch should match this pattern : (branch|release)-.* which is editable in the top left corner of the screen, on the “Administration -> Branches” menu.
By feature branch I mean a branch that will only exist during the development of a particular feature in the repository and is the one used to create a pull request against the main branch. That branch will only exist for a few days.
Right now, when we push any branch to Bitbucket the SonarCloud pipe runs and it looks like the system is picking it up
I’m facing the same issue when scanning a short lived branch like feature/some-branch.
We are using jenkins pipeline to automate scanning every time a commit is made on bitbucked.
The analysis seems to complete OK but the results are empty, and I know there should be some code smells.
The strange thing is that when I manually run the scan on my laptop and passing the exact same arguments used in jenkins pipeline the results are uploaded successfully and reported on the project
So i just checked on my side and even though a background task has the status of “passed”, there could be a warning that has occurred. You can check with the first screenshot you sent, click on the wheel and see if “Show warnings” contextual option is displayed or not. By the things you said, i’m very not sure if there was one or not. Could you check that ?
Thanks.
@Artemis_Braja as you can see, there’s a warning on the right of you screenshot? Could you please check it ? If it’s not related to pull request, i suggest you to open a new thread. Thanks.