Hi @TomVanBraband,
I am glad that you could find the issue of why sonarcloud was unable to start due to missing variables. Thanks, and after your help, I was able to start the multiple branch sonarcloud analysis only after adding the branch parameter in the command as below.
sonar-scanner -X -Dsonar.qualitygate.wait=true -Dsonar.branch.name=branch-test
Is it mandatory to add that branch parameter in sonar-scanner, the branches defined in only of gitlab-ci.yaml is not sufficient as below?
only:
- merge_requests
- master
- branch-test
- branch-no
And no comments from sonar cloud regarding the analysis(merge request decoration/comment) is observed in the gitlab merge request
as suggested here