I am trying to use SonarCloud with Travis-CI and getting the following error:
* What went wrong:
Execution failed for task ':sonarqube'.
You're only authorized to execute a local (preview) SonarQube analysis without pushing the results to the SonarQube server. Please contact your SonarQube administrator.
Here is the project on Github that I am trying to setup CI using Travis.
Here is the link for the Travis build that is failing executing the SonarQube step.
Here is the Travis config file
Here is the link for the Sonarcloud project.
On Travis I added the added the Env variable SONAR_TOKEN to 9d2401997a7368e6f351d50d7d99bbf1fae84624 and I see that it is picked up fine on the Travis Job Log.
I am very new to both Travis and Sonarqube, so any help is greatly appreciated.
Thanks, Shashi