我正在尝试从Azure DevOps管道运行X射线扫描,但是即使设置了所有内容,我仍然可以
Xray does not have any Watches monitoring this build, or the Watches monitoring this build do not have a CI Integration action defined
我有一个管道负责在工件上上传nuget包。这部分工作正常,我可以打包并将其发布到我的存储库中的工件上,没有任何问题。然后,在相同的构建上,我试图使用相同的工件端点运行X射线扫描。
配置扫描任务时出现不同的错误。首先它说该构建不存在,所以我不得不在伪造的一侧对其进行声明,然后它说没有对该名称的构建进行索引,因此我在索引设置中添加了该构建,然后最后一条错误消息告诉我手表的存在使我觉得问题出在X射线方面。
(绿色任务正常,红色任务失败)
在Xray方面,对构建进行了索引(错误消息消失),并且我有多个监视程序,可以显式指定构建,也可以指定所有构建。每个都有至少一个策略,并且已启用,如屏幕截图所示。这就是为什么我不明白为什么找不到所有匹配的手表,因为所有版本都链接到该手表
确切的消息如下
C:\hostedtoolcache\windows\jfrog\1.23.1\x64\jfrog.exe rt bs Lovely-Library-CI Lovely-Library-CI-20190505.1 --url="https://bobbob601.jfrog.io/bobbob601/" --user=*** --password=***
========================== Starting Command Output ===========================
##[command]"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\e9fb9321-84e7-4d6b-9674-8e018729a51d.cmd""
The CLI commands require the Artifactory URL and authentication details
Configuring JFrog CLI with these parameters now will save you having to include them as command options.
You can also configure these parameters later using the 'config' command.
[Info] Triggered Xray build scan... The scan may take a few minutes.
[Info] Xray scan completed.
Configure now? (y/n): {
[Error] Xray does not have any Watches monitoring this build, or the Watches monitoring this build do not have a CI Integration action defined.
"summary": {
"total_alerts": 0,
"fail_build": true,
"message": "Xray does not have any Watches monitoring this build, or the Watches monitoring this build do not have a CI Integration action defined.",
"more_details_url": ""
},
"alerts": [],
"licenses": []
}
有什么想法可以解决这个问题或我缺少什么吗?我对文档进行了三重检查。尝试使用CLI手动调用X射线。还是一样的错误
非常感谢
多亏了JFrog的支持,我才得到了未记载的答案。
您至少有一项政策,请选中“构建失败”选项。如果它们仅是审核策略,那么您会收到此随机消息。
因此,Xray的手表->->设置->策略(编辑)->检查构建失败
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句