SonarCloud can't find server only on pull requests

It looks like SonarCloud is using the wrong server address on pull requests:
https://travis-ci.org/jtablesaw/tablesaw/builds/636388237
SonarQube server [http://localhost:9000] can not be reached
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project tablesaw-parent: Unable to execute SonarQube: Fail to get bootstrap index from server: Failed to connect to localhost/127.0.0.1:9000: Connection refused (Connection refused) -> [Help 1]

However, I have no issues on the master branch
https://travis-ci.org/jtablesaw/tablesaw/builds/636522796

I’m using GitHub, Travis, and Java
https://sonarcloud.io/dashboard?id=jtablesaw_tablesaw

Hi @benmccann,
Can you share here in what way(s) you specify the SonarCloud URL currently?

You may also want to check this page (although it is for SonarQube, this may help I think).

I don’t specify the SonarCloud URL anywhere. It seems to work correctly like that on the master branch and I’d expect the default to point to the SonarCloud servers. Is it required to specify it?

The scanner alone doesn’t know the URL of SonarCloud. Ideally it should come from some helper tool (such as the Travis add-on), or else specified through other means (the environment variable SONARQUBE_SCANNER_PARAMS or the sonar.host.url Java property).

Are you using the Travis add-on? How do you configure the execution of the mvn command?

Yes, I’m using the Travis add-on. See here for the configuration: https://github.com/jtablesaw/tablesaw/blob/master/.travis.yml

@janos @AlxO thanks for looking at this. Any ideas why SonarCloud might not be working on GitHub pull requests for me based on the information provided?