Prepare analysis task failed in the Azure DevOps pipeline. Logs are attached, please suggest a solution.
SonarQube task logs.txt (5.8 KB)
Hi,
Welcome to the community!
Your log is pretty clear:
2025-03-04T09:39:28.2442659Z ##[debug][DEBUG] SonarQube Server: API GET '/api/server/version' failed. Error message: connect ECONNREFUSED 127.0.0.1:9000. 2025-03-04T09:39:28.2461394Z ##[error][ERROR] SonarQube Server: Error while executing task Prepare: API GET '/api/server/version' failed. Error message: connect ECONNREFUSED 127.0.0.1:9000.
It looks like your build agent can’t talk to your SonarQube instance.
HTH,
Ann