Download |
---|
PowerShell Module provides helper routines which can be used in automation with Jfrog Artifactory.
Inspired from PowerShell-Artifactory by Nicholas Dille.
I wrote my own module because I need to have more flexibility for the specific cases I met
Any feedback, issues or pull requests are appreciated.
- PowerShell v5.1
Returns storage summary information regarding binaries, file store and repositories in json format.
Invoking rest api call to jfrog artifactory to get the list of artifacts, that has not been used for amount of days.
Invoking rest api call to jfrog artifactory to get the list of docker images, that has not been used for amount of days. Reference documentation: How to clean up old Docker images and How can I delete Docker images older than a certain time period?
Info: Docker image layers are stored as separate artifacts within an “image” folder. If a layer is already in most Docker clients, it won’t get downloaded often. So search based on the manifest.json file, which is what will be changed only when that specific image/tag are downloaded/used. If a layer is shared between two different tags and if one of the tag is a candidate for the delete in your case above, then the layer will NOT be deleted in the binary storage since it will be still referenced by the other tag.
Invoking different kinds of rest api calls to Jfrog Artifactory.
Empties the trash can. Permanently deleting all its current contents.
For deleting jfrog artifactory artifacts with the help of rest api.
The function defines credentials and establish connection for validating those credentials.
Refreshes storage summary information regarding binaries, file store and repositories.