Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How finde the SonarQube server URL in Azure Portal

I have added sonarkube in my CI by Azure Devops, there is a job called prepare analysis on SonarQube in my CI and in this job I have created a service connection, in this popup window, SonarQube server URL muss be added, In my Azure Portal I can only finde "abcsonarqube.westeurope.azurecontainer.io" in container instance. In a website I have seen, that the SonarQube server URL is based on "cloudapp.azure.con:9000", so I have added this url "abcsonarqube.westeurope.cloudapp.azure.con:9000".

but by deployment I got this error:

##[error][SQ] API GET '/api/server/version' failed, error was: {"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo","hostname":"abcsonarqube.westeurope.cloudapp.azure.com","host":"abcsonarqube.westeurope.cloudapp.azure.com","port":"9000"}

Does somebody have any solutions?

like image 497
user1938143 Avatar asked Sep 18 '25 22:09

user1938143


1 Answers

Maybe it requires a full path with http:// according to this article: Exercise 2: Modify the Build to Integrate with SonarQube. Or azure devops service can not find your SQ server. You can find the SQ url in the Project Setting under Service Connections:

enter image description here

like image 137
Shamrai Aleksander Avatar answered Sep 21 '25 07:09

Shamrai Aleksander