When trying to set the SonarQube plugin, you might get the following error:
The SonarQube Project 'SomeProject' is not accessible.
Most likely it's a permission issue. The solution for this would be to use:
- Project Key as Project Name
- User Token instead of Global Token
An additional tip to verify access to the project is to run the following command in the terminal:
curl -u $SONARCLOUD_TOKEN: 'https://[HOST]/api/components/show?component=[KEY]'