Azure Jfrog集成 - YAML管道限制搜索数量
我想将搜索仅限为最后一个更新的文件,如何将其添加到我的代码中?我试图在卷发后添加限制(1)方形支架,但它不起作用。有人知道如何将其应用于我的代码吗?
ArtifactoryGenericDownload@3
inputs:
connection: "JFROG"
specSource: "taskConfiguration"
fileSpec: |
{
"files": [
{
"target": "./$(Pipeline.Workspace)/de-cf-dnalib",
"aql": {
"items.find":{
"repo":"python",
"$and":[
{
"$and": [
{ "name": { "$match": "*.whl" } },
{ "modified": { "$last": "10d" } }
]
},
{
"$and": [
{ "name": { "$nmatch": "*dev*" } }
]
}
]
}
}
}
]
}
failNoOp: true
I want to limit my search to only 1 last updated file how can I add this to my code ? I tried to add limit(1) after curly, square bracket but it didn't work. Does anyone know how to apply this to my code ?
ArtifactoryGenericDownload@3
inputs:
connection: "JFROG"
specSource: "taskConfiguration"
fileSpec: |
{
"files": [
{
"target": "./$(Pipeline.Workspace)/de-cf-dnalib",
"aql": {
"items.find":{
"repo":"python",
"$and":[
{
"$and": [
{ "name": { "$match": "*.whl" } },
{ "modified": { "$last": "10d" } }
]
},
{
"$and": [
{ "name": { "$nmatch": "*dev*" } }
]
}
]
}
}
}
]
}
failNoOp: true
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如此文档应与
aql
字段相邻。你能尝试一下吗?As per this documentation
limit
should be adjacent toaql
field. Can you try this?