Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

bitbucket repo list

venkatraj v.p. October 12, 2018

how do we get the entire project/repo list within bitbucket server instance with admin access or from db. do we have any way to get this

1 answer

0 votes
edwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 12, 2018

Hi @venkatraj v.p.,

Using REST API, for example you can use stashy.

stashy.readthedocs.io

import stashy
bitbucket = stashy.connect("http://localhost:7990/stash", "admin", "admin")

projects = bitbucket.projects.list()
for project in projects:
for repo in bitbucket.projects["%s" %(project["key"])].repos.list():
print(repo)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events