Integrating Bitbucket cloud with sonar community edition

I’m in the process of integrating sonarqube community edition with bitbucket:

  • I’m using sonarqube community edition docker image

docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:community

Sonarqube community runs on my local port 9000 (localhsot:9000).
I was trying to configure my workspace on bitbucket.
the first issue I encountered is ‘worksapce Id’ validation

Please see the above screenshot. The issue is ‘:’ (colon) how could you provide an URL without a colon?
Is it a bug with the docker image (sonarqube:community) I’m using

Also, I would like to know the URL that I should provide for the CallBack URL. Should it be “http://localhost:9000”? will there be any issues when Bitbucket calls an HTTP link instead HTTPS?

Appreciate your prompt reply in this regard.

Hey there.

You should only include the part of the URL that is the {workspace} (the part you have blacked out).

Will you be exposing your SonarQube instance over a public URL (or at least, public internally), or forever serving it over localhost:9000? In any case, it should be the URL that you (or your users) are using to access SOnarQube.

1 Like

Thank you very much. It worked

I’ve got the sonar community edition with docker working on my local.
But when I try to integrate with my GitHub actions I get the following error.

SonarQube analysis could not be completed because the analysis configuration file could not be found: D:\a\WebGoat.NET\WebGoat.NET.sonarqube\conf\SonarQubeAnalysisConfig.xml.

Do you have any idea why it throws this error?

Also noticed the following error in the logs

Please let me know if you need any further info.

Appreciate your help in this regard.

Hey there.

This topic was originally about Bitbucket. I suggest raising a new thread, and including information like your GitHub Actions YML file.

Thanks. Will do that