jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
538 stars 236 forks source link

How download Release Bundle V2 with `jf rt dl` #2781

Open depoortere opened 1 day ago

depoortere commented 1 day ago

Hello,

i'm trying to download the artifacts referenced in Release Bundle V2 on my subscription xx.jfrog.io. When i'm using this command : jf rt dl --build mybuild/buildnumber --project myproject, CLI download the artifact (jar/pom or tgz).

{
  "status": "success",
  "totals": {
    "success": 2,
    "failure": 0
  }
}

When i'm using this command : jf rt dl --bundle mybundle/bundleversion --project myproject, nothing happens :

{
  "status": "success",
  "totals": {
    "success": 0,
    "failure": 0
  }
}

The online documentation is unclear about Release Bundle V2 : https://jfrog.com/help/r/jfrog-artifactory-documentation/download-the-contents-of-a-release-bundle-v2 which send to this page : https://jfrog.com/help/r/jfrog-distribution-documentation/download-the-contents-of-release-bundles

Please, can you tell me if Release Bundle V2 can work or not with this CLI command ?

depoortere commented 1 day ago

With DEBUG i get this AQL Query :

items.find(
    {
        "$and":[{
            "release_artifact.release.name":"MyBundle",
            "release_artifact.release.version":"BundleVersion"
        }],
        "$or":[{
            "$and":[{
                "repo":{"$match":"*"},
                "path":{"$match":"*"},
                "name":{"$match":"*"}
            }]
        }]
    }
).include("name","repo","path","actual_md5","actual_sha1","sha256","size","type","modified","created","property")

When i use this in Postman, no result :

{
  "results": [],
  "range": {
    "start_pos": 0,
    "end_pos": 0,
    "total": 0,
    "limit": 500000
  }
}

JFrog CLI version: 2.72.2