Error message: Due to an upgrade, you need first to re-analyze the target branch 'master' before analyzing this short-lived branch


(Cleme Ntino) #1

Hi,

We use Sonar Cloud with Bitbucket Cloud + Bitbucket Pipelines.
Every this was working fine until recently we started getting these error messages

Error message: Due to an upgrade, you need first to re-analyze the target branch ‘master’ before analyzing this short-lived branch.

And we are not sure how to fix this please.

Thanks


(Duarte Meneses) #4

Hi,
We made a change in SonarCloud which removed the concept of modules in SonarCloud.
Unfortunately, it’s not possible to analyze branches in this new structure without modules until you analyze first their target (master in this case).
That error indicates that you haven’t analyzed your master branch since that change was done in SC.

Long story short, to fix the problem, please run a SonarQube analysis of the master branch.


(Cleme Ntino) #5

Thank you


(Pavel Backa) #6

Hi,
I have same issue after upgrade from 7.5 -> 7.7. Is this behaviour somewhere described - in release notes for examle?