Unable to access SonarQube using Azure DevOps Pipeline

  • Version: SonarQube 9.3.0.51899

  • I’ve completed the steps to connect a SonarQube project to my build pipeline manually and on the prepare analysis step I get this error:

“##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“errno”:“ETIMEDOUT”,“code”:“ETIMEDOUT”,“syscall”:“connect”,“address”:“172.31.25.200”,“port”:9000}”

The build agent VM and SonarQube VM are sitting in the same place so shouldn’t have any firewall issues however I am waiting for credentials to check this.

Hi,

Welcome to the community!

This does look like some sort of network problem. Either that, or the build agent doesn’t have the correct URL for the server.

 
HTH,
Ann

Update; I checked the build agent being used and SonarQube URL is accessible from there.

Hi,

Did you double check that analysis is using the correct URL?

 
Ann

The issue here was the build agent. It’s solved.