Hi

I've followed the Artifactory plugin guide and created a very simple way of
obtaining the total size of items in repository. It is available at Github
as a GIST.

https://gist.github.com/greggigon/5813049
<https://gist.github.com/greggigon/5813049>  

It would be great if someone could comment on it.
I would love for someone to test it on a reasonable size of a repository, as
I don't know the implications of the plugin on the performance.

There are two methods available via POST request. 

One for giving the size of a repository in Bytes 
http://hostname:port/artifactory/api/plugins/execute/getRepositorySize?params=repoName=ext-release-local

And the second one that prepares a report for all local repositories and
returns it as a JSON
http://localhost:8081/artifactory/api/plugins/execute/getAllRepositorySizes

Cheers, Greg



--
View this message in context: 
http://forums.jfrog.org/Artifactory-Plugin-for-the-size-of-a-local-Repositories-tp7578900.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to