Error Integration Bitbucket Pipeline and SonarCloud

Hey there.

Typically, in Bitbucket Pipelines, the default host should be https://sonarcloud.io unless overriden somewhere. This relies on the presence of the BITBUCKET_BUILD_NUMBER environment variable. Is that environment variable available during your build?

In any case, even if you still need to manually set sonar.host.url, it’s not the end of the world. I would encourage leaving out -Dsonar.login and relying on having SONAR_TOKEN configured)

  • You may want to try using the latest version of the pipe, 1.4.0.
  • Can you confirm how/where you’re setting SONAR_TOKEN? A screenshot would be helpful.