azure - 尽管安装了代理,但无法从 Azure DevOps(云 - PaaS)访问内部 SonarQube(本地)

标签 azure azure-devops sonarqube vpn agent

我无法从 Azure DevOps(云)联系我的内部本地 SonarQube。

这是我在 Azure Build Pipeline 上遇到的错误:

##[debug][SQ] API GET '/api/server/version' failed, error was: {"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"172.16.8.3","port":9002}

我的本​​地 SonarQube 是内部的(只能通过 VPN 访问),但当我在这台计算机上安装了 Azure 代理(其中 Azure 已经能够自动发布我的网站)时,我认为我不需要任何其他东西即 cocoa 以从 Azure DevOps 进行访问。

我错过了什么?

最佳答案

虽然可以使用代理在内部服务器上发布网站(只能通过 VPN 访问),但 Sonarqube 不准备以类似的方式工作(从 Azure DevOps 上传必要的文件)。

这个问题只有两种解决方案:

  • 在您的 VPN 上创建异常(exception),授权访问 Sonarqube 端口。该解决方案存在安全限制。

  • 使用SonarCloud(SonarQube云版本)而不是SonarQube。该解决方案可能会产生相关成本,因为 SonarCloud 免费版本迫使我们与公众共享我们的代码。只有付费版本才能确保您的代码保持私密性。

关于azure - 尽管安装了代理,但无法从 Azure DevOps(云 - PaaS)访问内部 SonarQube(本地),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61210673/

相关文章:

sql - 如何在 SQL Azure 中创建登录名、用户并授予数据库权限?

Azure 服务总线主题 : how enable concurrent readers?

azure-devops - Azure DevOps Services\Server 中部署组和环境之间的差异

sonarqube - SonarScanner for .NET 在 GitHub Actions (.NET 5) 中失败

azure - 在 Linux 上的 azure webapp 上设置 cakephp3

azure - Azure .net SDK 中的异常 "cannot open log"无效操作异常是什么?

git - 如何在Azure DevOps中获取带有斜线的分支名称?

c# - 如何从控制台应用程序使用客户端 api 连接到 TeamFoundationServer (tfs)?

css - 无法为 Check this potential box model size issue 设置 stylelint 规则

java - 排除 Sonar 规则