SonarCloud integration issue, TRAVIS_SECURE_ENV_VARS is always false

Build job here: https://travis-ci.org/apache/servicecomb-toolkit/builds/612151368

Script here: https://github.com/apache/servicecomb-toolkit/blob/master/scripts/test.sh

I tried to integrate SonarCloud addon on my build, and find that SonarCloud addon is not enabled in PR situation.

I tried the solution mentioned in this topic. The key is to detect TRAVIS_SECURE_ENV_VARS, but I found that it’s false even when triggered on the github repo master branch (log here).

I just figured it out, i didn’t use encrypt env var so TRAVIS_SECURE_ENV_VARS is false.

I fix the script but another problem happens, I got a error:

You’re not authorized to run analysis. Please contact the project administrator.

The build job is here

I figured it out, this is the issue on SonarCloud auth config.

Imprint