i am facing a sonarcloud quality gate not computing issue
i have renamed long-lived branch master to our branch name but it’s showsquality gate not computed, when running the bitbucket pipeline it shows an error like this
"ERROR: Error during SonarScanner execution
ERROR: Could not find a default branch to fall back on.
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
SonarCloud analysis failed. (exit code = 2)
sonar cloud suggested for setting a new code definition, i have changed the new code definition, but it won’t work,
Is there any way to solve this issue
Can I check exactly how you renamed the branch in bitbucket? I would like to recreate the issue locally. I know that there can be issues with this renaming of branches but I would like to see the issue to see if there is something we can do to help here.
From my side I have just tried to create a main branch in bitbucket, run the sonarcloud analysis and then change the branch name on bitbucket and redo the analysis against a pr merging into the new development branch. I have not experienced the error which you have shared. Maybe if you can share the mentioned information about how you did this branch name change and also how you updated it on sonarcloud it might help me to isolate the issue for you.