Difference between revisions of "Jfrog rt search"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Draft}}
 
  
 +
[[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:
 +
<pre>
 +
{
 +
"files": [
 +
  {
 +
    "aql": {
 +
      "items.find": {
 +
        "repo": {"$eq":"docker-staging"},
 +
        "path": {"$match":"*"},
 +
        "name": {"$match":"*"},
 +
        "stat.downloads":{"$eq":null},
 +
        "$or": [
 +
          {
 +
            "$and": [
 +
              {
 +
                "created": { "$before":"6mo" }
 +
              }
 +
            ]
 +
          }
 +
        ]
 +
      }
 +
    }
 +
  }
 +
]
 +
}
 +
</pre>
 +
https://stackoverflow.com/questions/40118550/artifactory-delete-all-artifacts-older-than-6-months
  
jfrog rt s --spec [[artifactory.spec]]
 
  
 
== See also ==
 
== See also ==
 
* {{JFrog CLI}}
 
* {{JFrog CLI}}
 +
* {{JFrog}}
  
 
[[Category:JFrog]]
 
[[Category:JFrog]]

Latest revision as of 12:46, 17 April 2021

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: