I have an issue with trying to get SonarCloud and Travis correctly linked. It specifically gives the error “main component does not belong to specified organization”.
I am unsure what is meant by “main component”.
I did manage to get this working for my own SonarCloud account with my own fork of the same project, however, now I am trying to set this up for an organization of which I am a member rather than using my personal account. I made sure to give SonarCloud access to the repository on Github and I changed the organization name.
Has anyone encountered this problem before or have an idea how I can resolve it? I tried looking on the internet for a solution but I couldn’t find anyone with a similar issue.
The only thing that I noticed is that, when following the instructions to link SonarCloud with Travis, you are asked to create a user authentication token. Currently, the one I created is not for the SonarCloud organization but for my personal account. Would that be the issue?
Thanks in advance!