Current Setup:
We are using Azure DevOps services for our build and we are using MicrosoftHosted agents for this.
We have installed SonarQube Enterprise Edition Version 9.0.1 (build 46107) in one of our On-Premise servers. This server is not exposed to the public and is accessible only within our Organization network.
Issue Description:
When we are running our Code analysis as part of our build, we are getting errors when connecting to the SonarQube instance. As per the documentation it is clearly stated and mentioned earlier that SonarQube will work for both On-perm and Cloud. SonarQube documentation
What we are trying to achieve:
Below are our constraints:
We will not be able to change the build pipeline agents
We have security constraints on opening the Server to the public internet for Azure DevOps agents to access.
As per the documentation, we assumed this is something that can be achieved using some agents and currently we are booked in using SonarQube in our Org. even though we have an Enterprise license.
So we are looking for the best way to integrate Azure DevOps MicrosftHosted agents with SonarQube on-premise server.
This error indicates that the remote address cannot be resolved from the Microsoft-hosted agent (sonar.**.**.com cannot be resolved to an IP Address, and communication with the server cannot take place). This error is unlikely related to SonarQube.
What happens if you run a command such as the following from your build agent?
nslookup sonar.**.**.com
Please let me know when you have the data and I can message you directly and we can start a private thread.
Please also provide logs from the build where this failure is occurring. I need to verify you are seeing the same problem as I am.