Jfrog rt search

From wikieduonline
Revision as of 12:46, 17 April 2021 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
jfrog rt s my_not_found_artifact
[Info] Searching artifacts...
[Info] Found 0 artifacts.
[]
jfrog rt s a*


jfrog rt search --spec artifactory.spec or jfrog rt s --spec artifactory.spec

Created before 6 months:

{
"files": [
  {
    "aql": {
      "items.find": {
        "repo": {"$eq":"docker-staging"},
        "path": {"$match":"*"},
        "name": {"$match":"*"},
        "stat.downloads":{"$eq":null},
        "$or": [
          {
            "$and": [
              {
                "created": { "$before":"6mo" }
              }
            ]
          }
        ]
      }
    }
  }
]
}

https://stackoverflow.com/questions/40118550/artifactory-delete-all-artifacts-older-than-6-months


See also[edit]

Advertising: