You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
How do i get the list of all projects and repositories from Bitbucket on premises server
Hey @Shruti S G
We can get this info from Database and via rest API too.
Check out this doc on how to get the list from DB https://confluence.atlassian.com/bitbucketserverkb/how-to-obtain-a-list-of-all-projects-and-repositories-from-bitbucket-database-975027747.html
Regards,
Vishwas
Thank you Vishwas. Could you share me doc on how to get that through rest API
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Shruti S G
Couldn't get the exact query or API code to retrieve the data at once, you may have to start looking at the Bitbucket REST API document and build the code here https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html
In case if you have Scriptrunner plugin in bitbucket there is a ready made code available here to get list of projects along with all their repositories and bonus too(size of each repo) https://scriptrunner.adaptavist.com/5.4.5/bitbucket/ScriptConsole.html#_list_all_repository_sizes_by_project
Hope this helps !!
Regards,
Vishwas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Shruti S G
Please feel free to accept the answer in case it helped you for the purpose of community posterity :)
Regards,
Vishwas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.