Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure devops sonarqube分析与Ci构建集成中的问题_Azure Devops_Sonarqube - Fatal编程技术网

Azure devops sonarqube分析与Ci构建集成中的问题

Azure devops sonarqube分析与Ci构建集成中的问题,azure-devops,sonarqube,Azure Devops,Sonarqube,我正在尝试使用Ci构建运行sonarqube分析。 我在vsts构建定义中添加了任务“准备Sonarqube分析”和“运行代码分析”。我在排队生成时遇到以下错误: [SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“ENOTFOUND”,“errno”:“ENOTFOUND”,“syscall”:“getaddrinfo”,“hostname”:“sonarqube.sssss.com”,“host”:“sonarqube

我正在尝试使用Ci构建运行sonarqube分析。 我在vsts构建定义中添加了任务“准备Sonarqube分析”和“运行代码分析”。我在排队生成时遇到以下错误:

[SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“ENOTFOUND”,“errno”:“ENOTFOUND”,“syscall”:“getaddrinfo”,“hostname”:“sonarqube.sssss.com”,“host”:“sonarqube.ssss.com”,“port”:443}
我使用的Sonarqube版本是6.1。 有谁能帮我找出这个问题发生的原因吗

sonarqube分析与Ci构建集成中的问题

根据错误消息API GET“/API/server/version”failed,您的Azure DevOps代理似乎无法连接到SonarQube URL

如果您使用的是Hosted agent,则它无法访问本地主机服务器。所以,你必须使用私人代理

如果您使用的是private,但仍然存在此问题,则应确认您的private agent可以连接到SonarQube服务器

有关更多详细信息,请查看


希望这有帮助。

您能分享您的构建管道吗?这绝对是解决方案!是否建议在每次CI构建/Git提交时自动运行SonarQube分析?