Sonar doesn't update branch analysis on new code

  • which versions are you using:
    Sonar community 9.9. I don’t have the hands on sonar itself, I’m just a dev in my company.

  • how is SonarQube deployed:
    idk

  • what are you trying to achieve
    When we make a branch, our gitlab pipeline starts an analysis, the analysis correctly shows in Sonar UI, that’s great.
    When we make a commit, Sonar does the analysis as a “pull request”, and the new code in the analysis is correctly showed in the UI.
    However, the said new code isn’t reported to the branch analysis: the branch analysis doesn’t update at all

  • what have you tried so far to achieve this
    editing java file, playing with the sonar.properties, but we didn’t find anything to force the branch analysis to update

  • logs:
    logs.txt (3.8 MB)

Hey there.

SonarQube only supports branch/pull request analysis in Developer Edition+. If your company found a way to enable it in Community Edition, unfortunately, it won’t be supported on this forum.