0
votes

As our SonarQube instance was not accessible over internet, I am getting the below error in "Prepare analysis on SonarQube" task during the analysis of a java project.

[SQ] API GET '/api/server/version' failed, error was: {"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo","hostname":"ABC.XYZ.com","host":"ABC.XYZ.com","port":443}

Some links suggests that by adding proxy variable will solve this issue. But don't know how to do it. Some links suggests to install agent service (from Deployment Pool section) will solve this issue. In that case we need to do it for multiple organization.

So anyone please let me know what will be the proper solution for this issue.

1
Hi @Kattesang, how are things going? Does it work using the self-hosted agents on the host of your SonarQube server? If you have any updates, feel free to tell me. - Bright Ran-MSFT
@Bright Ran, As of now the requirement was on hold. So not able to comment on your reply. Thanks - VKD

1 Answers

0
votes

For this problem when using SonarQube on Azure DevOps Services (VSTS), installing self-hosted agents generally is a better way to solve the problem.

To install self-hosted agents on multiple organizations, you can try to set up a shell script that executing the installation command lines in a loop to install a self-hosted agent for each organization.