Main branch not analyzed in SonarQube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm zip
  • what are you trying to achieve Sonar Analysis
  • what have you tried so far to achieve this Jenkins maven project free style job.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hello Sonar Community,

This is my current configuration.

SonarQube Developer 2025.1

License : Expired

CI Tool : Jenkins

I have a Free style job configured on Jenkins that has Sonar Scan stage used as maven goals. Jenkins console shows the analysis was successful and when I go to see the reports on SonarQube server it shows something like this

My default branch on Bitbucket repo is master. I renamed the branch name on SonarQube as master only but still it is not able to analyzed.

Secondly, I tried to run the scan with sonar.branch.name=develop and it shows similar issue attached.

This is something I am running the test on QA instance before upgrading our Production instance.

Note: The License on Sonar QA instance is expired and we do not have new license keys.

Is this something because of the expired license or something else is causing this?

All your inputs are greatly appreciated.

Hi,

If your SonarQube Server license is expired, then yes, analysis will succeed on the server side but be rejected on the server side. If you check the project’s Background Tasks, you’ll likely see exactly this.

 
HTH,
Ann