首页 > 解决方案 > SonarQube 质量门状态获取问题

问题描述

我正在尝试使用以下查询获取 SonarQube 质量门状态的状态

curl.exe -u“78c2b8628934a6cdc8ae80f5acadaaaafdfsa96”:“https://sonarurl/api/qualitygates/project_status?projectKey=MarUiSonarQube3”

然后系统提示输入密码,之后我收到以下错误:

我错过了什么?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>IIS Windows</title>
<style type="text/css">
<!--
body {
        color:#000000;
        background-color:#0072C6;
        margin:0;
}

#container {
        margin-left:auto;
        margin-right:auto;
        text-align:center;
        }

a img {
        border:none;
}

-->
</style>
</head>
<body>
<div id="container">
<a href="http://go.microsoft.com/fwlink/?linkid=66138&amp;clcid=0x409"><img src="iisstart.png" alt="IIS" width="960" height="600" /></a>
</div>
</body>
</html>

标签: sonarqube

解决方案


我认为您可能已经启动并运行了 Internet 信息服务,并且它默认使用端口 80。所以您可能需要在 SonarURL 上指定端口,这仅在您的 SonarQube 位于 localhost 上时


推荐阅读