SonarQube Dev Edition : Azure DevOps Pipeline for Sonarqube with MsBuild is failing on Prepare Analysis Configuration // [SQ] API GET ‘/api/server/version’ failed, error was: {“code”:”ENOTFOUND”

Getting error at Prepare Analysis Configuration, i am using inbuilt Azure Pipeline to build solution

Azure DevOps Pipeline for Sonarqube with MsBuild is failing on Prepare Analysis Configuration // [SQ] API GET ‘/api/server/version’ failed, error was: {“code”:”ENOTFOUND”

Hi,

Would you care to provide the details of the error?

Because on the face of it, this is a problem getting to your SonarQube server, as I suggested in the thread you linked to.

 
Ann

Here are the error details at Prepare Analysis Configuration step

##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“errno”:“ENOTFOUND”,“code”:“ENOTFOUND”,“syscall”:“getaddrinfo”,“hostname”:“XXX-XX-01”,“host”:“XXX-XX-01”,“port”:“9000”}

image

Note : I am using in-built Azure Pipeline agent for build piepline.

Hi,

Can you verify the URL value in your Azure SonarQube Service Endpoint?

 
Ann

Server Url : http://XXX-XX-01:9000

Hi,

And can you verify the ability of the Azure build agent to connect to that URL?

 
Ann