从TeamCity的Jfrog人工制品下载最新的人工制品包

时间:2019-03-19 06:31:55

标签: teamcity jfrog-xray

我在Artifact信息库中有一组zip文件,我需要获取最新的工件。文物的结构如下所示

房屋贷款
   -> test-application-dev-local_1.zip
   -> test-application-dev-local_2.zip
   -> test-application-dev-local_3.zip
   -> test-application-dev-local_4.zip
   -> test-application-dev-local_5.zip
   -> test-application-dev-local_6.zip
   -> test-application-dev-local_7.zip

所有这些人工制品都是Msbuild的输出。每次用户检入他们的代码时,它都会在TeamCity中构建,并将人工制品上载到Jfrog。

现在,我有另一个TeamCity构建,它是根据adhooc基础触发的,需要获得最新的人工信息,在这种情况下,我需要“ test-application-dev-local_7.zip”。

我正在使用TeamcityArtifactory插件来获取人工制品,以下是我尝试过的规格。

{
    "files": [{
        "aql": {
            "items.find": {
                "@build.name": "test-application-dev-local_*.zip"
            }
        },
        "target": "somepath",

    }]
}

通过上述规范,我得到了所有7个zip文件。我尝试为上述规格添加限制(我不确定这是否是正确的方法),但出现错误

{
"files": [{
    "aql": {
        "items.find": {
            "@build.name": "test-application-dev-local_*.zip"
        }
    },
    "limit":1
    "target": "somepath",

}]

}

Error occurred while resolving dependencies from the spec: Unrecognized field "limit" (class org.jfrog.build.extractor.clientConfiguration.util.spec.Aql), not marked as ignorable (one known property: "items.find"])

我不确定如何检索最近上传的文物。

0 个答案:

没有答案
相关问题