【问题标题】:SonarQube quality gate status fetching issueSonarQube 质量门状态获取问题
【发布时间】:2021-09-01 23:52:38
【问题描述】:

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


    【解决方案1】:

    您指定的网址如下:

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

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

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

    【讨论】:

      猜你喜欢
      • 2015-02-11
      • 2021-07-07
      • 2021-05-06
      • 2020-07-21
      • 2019-07-20
      • 2015-07-05
      • 2016-08-11
      • 1970-01-01
      • 2020-06-24
      相关资源
      最近更新 更多