jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

Unable to download LATEST artifact with `rt download --spec` with 1.51.0 and 1.51.1

Open trdyer opened this issue 4 years ago • 9 comments

Describe the bug When trying to pass a AQL spec file to download the latest versions of artifacts for multiple builds I am unable to use the LATEST parameter to get the most recent build. For instance

{
    "files": [{
        "pattern": "*",
        "build": "repo-a/main/LATEST",
        "target": "./",
        "flat": "true"
    }, {
        "pattern": "*",
        "build": "repo-b/main/LATEST",
        "target": "./",
        "flat": "true"
    }, {
        "pattern": "*",
        "build": "repo-c/main/LATEST",
        "target": "./",
        "flat": "true"
    }, {
      "pattern": "*",
      "build": "repo-d/LATEST",
      "target": "./",
      "flat": "false"
    }]
}

To Reproduce One thing I have noticed is that repo-a,b,c all have extraneous module ID's in the build as referenced in #1218 , and repo-d does not.

The artifacts for repo-d are successfully downloaded.

Expected behavior ALL artifacts are downloaded based on the AQL search.

Versions

  • JFrog CLI version: 1.51.0
  • JFrog CLI operating system: OSX 11.4
  • Artifactory Version: SaaS

Additional context This issue does not exist in 1.50.2

trdyer avatar Sep 09 '21 14:09 trdyer