I am getting the below error in the Azure CI/CD pipeline. I have generated the new tokens in Sonar Cloud, and the same tokens applied to service connection verification have succeeded. After the pipeline runs, I am getting the below error in the service connection:
So please confirm whether this is an agent-level issue or a Sonarcloud portal issue
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.
2023-07-12T14:16:16.1872732Z ##[error]10:16:16.169 Unable to connect to server. Please check if the server is running and if the address is correct. Url: 'https://sonarcloud.io/api/server/version'.
2023-07-12T14:16:16.1885101Z 10:16:16.169 Unable to connect to server. Please check if the server is running and if the address is correct. Url: 'https://sonarcloud.io/api/server/version'.
2023-07-12T14:16:16.1886781Z ##[error]10:16:16.185 An error occured while querying the server version! Please check if the server is running and if the address is correct.
2023-07-12T14:16:16.1888149Z 10:16:16.185 An error occured while querying the server version! Please check if the server is running and if the address is correct.
Are you using self-hosted build agents? If so, you probably need to talk to your network folks to make sure they can get out to SonarCloud