sonarqube - 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&clcid=0x409"><img src="iisstart.png" alt="IIS" width="960" height="600" /></a>
</div>
</body>
</html>
解决方案
我认为您可能已经启动并运行了 Internet 信息服务,并且它默认使用端口 80。所以您可能需要在 SonarURL 上指定端口,这仅在您的 SonarQube 位于 localhost 上时
推荐阅读
- swift - Flutter 原生小部件 + Nexi 的 XPay
- dsl - 为什么 Xtext 不再生成 Xtend 类?
- python - 将路径长度正确解析为 <=260 个字符。带有 260 个字符的路径的奇怪行为
- database - 将数据库连接到 Xamarin iOS 和 Android 移动应用程序
- html - CSS Grid - 如何均匀对齐我的菜单项?
- amazon-kinesis - Kinesis vs KPL vs KCL
- python - Pandas:根据每行中的多个条件计算中位数
- php - 为什么在文件上传时我的日志中出现“调用成员函数 null”?
- javascript - 以编程方式设置 Paypal 购买“价值”
- mongodb - MongoDB Stitch 返回 JSON 数组对象