TravisCI + Sonarcloud ? (Java)


I’m new with sonar and I followed the steps to use it with Travis.

  • I successfully encrypt my token
  • I then edited my .travis.yml file correctly

But when launching

mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar

it is trying to access a local sonar server instead of sonar cloud :

  [ERROR] SonarQube server [http://localhost:9000] can not be reached

Can someone explain me what I missed ? Can’t it work with sonarcloud without any server on my side ?

Thanks !


If you used the sonarcloud Travis addon in your yaml file it should automatically target the SonarCloud server and not localhost.

Could you share the config that you have in your yaml file ?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.