Sonar is not populating Pull Requests and branches

Template for a good new topic, formatted with Markdown:

  • ALM used: Bitbucket
  • CI system used: Circle CI
  • Languages of the repository: JavaScript, TypeScript

Sonar doesn’t populate Pull Requests and branches on our Bitbucket project, using CircleCI.

It doesn’t show any short-lived branches, and also doesn’t show our branch named develop.
The whole project seems stale, even with correct configuration.

Seems like an issue very similar to Sonar Analysis Branch is not populating in sonar Cloud

I’m using CircleCI Developer Hub - sonarsource/sonarcloud on CircleCI, which shows these logs:

INFO: Analysis report generated in 5102ms, dir size=12 MB
INFO: Analysis report compressed in 3012ms, zip size=7 MB
INFO: Analysis report uploaded in 14734ms
INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=XYZ&branch=dev&resolved=false
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at https://sonarcloud.io/api/ce/task?id=XYZ
INFO: Time spent writing ucfgs 4988ms
INFO: Analysis total time: 5:33.701 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 5:41.483s
INFO: Final Memory: 384M/1297M
INFO: ------------------------------------------------------------------------

(I have replaced the real ids in order to protect my privacy, I could share them in a private call)

I double-checked sonar.projectKey and sonar.organization, they are correct.

Hey there.

Do you see these analyses in your project’s Administration > Background Tasks? Are they successful?

Hi @Colin , yes, I see the analyses, but they have status “Failed”.

Clicking on Show Error Details, I get:

This analysis will make your organization 'xyz' to reach the maximum allowed lines limit (having 122395 lines). 
Please contact the administrator of the organization to resolve this issue.

Probably this is the reason. What does this mean?

@Colin , we’ve just upgraded our plan to support more lines.
However, I think Sonar’s interface should have made it more obvious, it took quite some time of debugging.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.