I started to experience the same problem in builds which used to work perfectly fine, and I also see this in the log
/home/travis/.travis/job_stages: line 796: export: `decrypt]’: not a valid identifier
From what I understand from this issue https://github.com/travis-ci/travis-ci/issues/10138 if you encrypt SONAR_TOKEN in the Travis settings, you don’t need to specify anything else in the build.
So
addons:
sonarcloud:
organization: "my orga"
is enough to access SonarCloud