Jfrog rt search

From wikieduonline
Revision as of 07:04, 18 March 2021 by Welcome (talk | contribs)
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

Advertising: