Getting an error in Prepare Analysis on SonarQube task of Azure DevOps Pipeline

Error:

[error][SQ] API GET ‘/api/server/version’ failed, error was: {“errno”:“ENOTFOUND”,“code”:“ENOTFOUND”,“syscall”:“getaddrinfo”,“hostname”:“sonarqube.cap.org”,“host”:“sonarqube.cap.org”,“port”:80}

For your information: We are using Microsoft Hosted Agents & SonarQube™ technology is powered by SonarSource SA

  • Developer Edition
  • Version 9.9.1 (build 69595)

Error:

[error][SQ] API GET ‘/api/server/version’ failed, error was: {“errno”:“ENOTFOUND”,“code”:“ENOTFOUND”,“syscall”:“getaddrinfo”,“hostname”:“sonarqube.cap.org”,“host”:“sonarqube.cap.org”,“port”:80}

For your information: We are using Microsoft Hosted Agents & SonarQube™ technology is powered by SonarSource SA

  • Developer Edition
  • Version 9.9.1 (build 69595)

Hey there.

Do you expect sonarqube.cap.org to be accessible by Microsoft Hosted Agents? Usually this means that the instance is accessible from the internet, which it doesn’t seem to be for me (just by clicking on the link)