Bitbucket pipeline integration with SonarQube

We are using SonarQube Developer edition for our organization

We followed the SonarQube documentation steps for the Bitbucket Cloud Integration, But bitbucket pipelines are not able to connect the ${SONAR_HOST_URL} after all the configurations are done

Note: Bitbucket pipelines are hosted outside of our Org network and SonarQube is hosted inside Org network

What are the other ways to integrate with bitbucket and perform the scanning for each pull requests?

Thanks
Harsha

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi,

Welcome to the community!

Could you share the errors you’re seeing?

Also, to be clear, you’ve created an envvar named SONAR_HOST_URL in Bitbucket Cloud with the value of your SonarQube URL, right? And your SonarQube URL is reachable from outside your network, right?

 
Ann

Hi

Please find below error

Yes, SONAR_HOST_URL env variable is configured with SonarQube url and it is not accessible from outside of the org network.

I hope this will be same case with all the customers who are using Bitbucket cloud then what will be approach for them to do the successful integration with SonarQube hosted in the org network?

Thanks
Harsha

Hi,

I think that’s going to be the problem. Bitbucket Cloud can’t connect to your SonarQube because your SonarQube isn’t accessible from outside your organization’s network.

 
HTH,
Ann

Hi Ann

Thanks for replying on my queries.

Can i say, Bitbucket cloud cannot connect to the SonarQube hosted in a org network unless it is made available over the internet without any firewalls?

Thanks
Harsha

Hi Harsha,

I’m not aware of what configuration options are available on the Bitbucket Cloud side, so I’m reluctant to say that your SonarQube instance must be available over the internet without any firewalls. But Bitbucket Cloud needs to be able to talk to your SonarQube.

 
Ann