SonarQube 质量门状态获取问题

SonarQube quality gate status fetching issue

我正在尝试使用以下查询获取 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>

您指定的url如下:

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

您指定令牌值的方式看起来有点不对劲。尝试将其更改为以下内容(将冒号移到标记之后):

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