Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I get the following error when i try to connect sonarqube with azure devops build pipeline

Ask Question

[error][SQ] API GET '/api/server/version' failed, error was:
{ "code": "ECONNREFUSED", "errno": "ECONNREFUSED",
"syscall":"connect","address":"127.0.0.1","port":9000 }

I have configured sonarqube and it's running fine on localhost.

Welcome to Stackoverflow! Try to add more relevant information to your question. Why do you think Azure DevOps can reach SonarQube; do you still use localhost somewhere? Jeroen Heier Nov 20, 2019 at 4:41 Hi @B. Akshay Did you get a chance to try out below answer? Please let me know how did it go? We can discuss it to work out a better solution. Levi Lu-MSFT Nov 22, 2019 at 9:47

You may need to run your build pipeline on your on-premise agent in order to integrate with your local sonarque server. For cloud hosted agent cannot access local your SQ server with address 127.0.0.1:9000.

It is easy to install and configure self-hosted agents, please check the microsoft official detailed guidance here .

Please check the exercise 2 here for detailed steps to integrate build pipeline with SonarQube .

However you can also follow the detailed steps in exercise 1 here to create a sonarque server hosted on azure. Azure hosted SQ server works with both on-premise agents and microsoft-hosted agents.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .