我正在尝试从 manifest.json 文件中获取 SHA_256 值,但无法使用 aql。以下是我正在使用的 cmd:
ubuntu@test:~$ curl -sS -u sumkumar:$pw -XPOST -k -H "Content-type: text/plain" https:///artifactory/api/search/aql -d 'items.find({ "repo":"xyz"},{"path":"a/b/c"}).include("*")'
{
"results" : [ {
"repo" : "xyz",
"path" : "a/b/c",
"name" : "manifest.json",
"type" : "file",
"size" : 1579,
"created" : "2018-03-13T11:58:33.771Z",
"created_by" : "uex-sp-cd",
"modified" : "2018-03-15T14:17:38.299Z",
"modified_by" : "uex-sp-cd",
"updated" : "2018-03-15T14:17:38.299Z",
"depth" : 4,
"actual_md5" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"actual_sha1" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"original_md5" : "NO_ORIG",
"original_sha1" : "NO_ORIG",
"virtual_repos" : [ ]
},{
但是,如果您从 UI 中查看原始 manifest.json 文件。它包含 SHA256 值。 在此处输入图像描述