Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,593
Community Members
 
Community Events
176
Community Groups

SonarQube server [$SONAR_HOST_URL] can not be reached

Hi,

When I am trrying to sonar scan project through bitbucket pipeline. I am getting building error: SonarQube server [$SONAR_HOST_URL] can not be reached. Please provide solution 

1 answer

0 votes
Norbert C Atlassian Team Mar 16, 2022

Hi Sandeep,

Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

To resolve this issue, can I ask you to Create a custom environment variable with SONAR_HOST_URL as the Name and your SonarQube server URL as the Value. You can create a variable by following the steps here

Source: https://docs.sonarqube.org/latest/analysis/bitbucket-cloud-integration/

Please let me know how it goes.

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support

Hi, Nobert,

This is a dedicated sonar-cube server hosted on one of the datacenter. We can only access it through a URL within our company network using a username and password.

This cannot be accessed outside of company network.

I tried to update my bitbucket-pipelines.yml file so that when i push the code from local repo to remote, the pipeline would be triggered, automation code would run and then quality gate result would be displayed in sonarcube. I am getting the above error: URL couldn't be reached. Attaching the pipeline yml file and screenshot of the page on sonarcube where it asks to follow some steps to configure. I would appreciate your help on this.

FYI i did create a custom env variable and then passed it on yml file

yml file.jpg

 

ymlfile1.jpg

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events