lgm*_*and 1 build azure-devops jfrog-xray
我正在尝试从 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
Run Code Online (Sandbox Code Playgroud)
我有一个管道负责在 artifactory 上上传 nuget 包。这部分工作正常,我可以将它打包并发布到我的存储库上的 artifactory 上,没有问题。然后,在同一个构建中,我尝试使用相同的 artifactory endpoint运行 xray 扫描。
配置扫描任务时出现不同的错误。首先它说构建不存在所以我必须在人工方面声明它,然后它说没有索引具有此名称的构建,所以我在索引设置中添加了构建,然后最后一条错误消息告诉我没有观看该版本的存在,这让我认为问题出在 Xray 方面。
(绿色任务正在运行,红色任务失败)

在 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": []
}
Run Code Online (Sandbox Code Playgroud)
知道问题可能来自哪里或我缺少什么吗?我仔细检查了文档。尝试使用 CLI 手动调用 xray。还是同样的错误
多谢
感谢 JFrog 的支持,我得到了未公开的答案。
您至少有一项政策,请选中“构建失败”选项。如果它们只是审计策略,那么您会收到此随机消息。
所以 Xray 的手表 -> -> 设置 -> 策略(编辑) -> 检查构建失败
| 归档时间: |
|
| 查看次数: |
938 次 |
| 最近记录: |