SonarQube Analysis/Short-lived branch blank

SonarQube Enterprise Edition Version 7.9.5

Hi , we ran a scan on a main branch and the scan returned expected results. Tried scanning a feature branch and get black page for with no information for that branch. Feature branch is several commits ahead of main. There is no errors in the logs, not sure how to troubleshoot this

Hi @elena.contella ,

Welcome to SonarSource Community! :wave:

Can you please post the debug-level logs of your project scan for the main branch and the debug-level logs of your project for your CCE-0221-dev branch? I’ll private message you in case you prefer to communicate there.

Joe

After reviewing the short-living branch on SonarQube 7.9.5, branch analysis must include at least the sonar.branch.name analysis parameter and you must ensure you git commit the changes on your feature branch so that branch analysis will know what changed when scanning your project.

Otherwise, you will get this kind of log:

SCM reported changed lines for 0 files in the branch

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