List Number of files in Bitbucket Repos ( all projects).

Ravi GH October 23, 2017

How to find number of file in Bitbucket Server using script runner plugin.

 

1 answer

1 accepted

0 votes
Answer accepted
adammarkham
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.
November 6, 2017

Hi Ravi,

Would that be number of files in a specific Bitbucket repository or instance wide?

Thanks,
Adam

Ravi GH December 9, 2017

Instance wide 

adammarkham
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.
December 11, 2017

I was wondering why do you want to list all files in your Bitbucket instance? What is the goal of doing that?

The Bitbucket API is not really designed to do this so it would result in a rather long running query. 

Perhaps you'd consider calculating the number of projects and repositories you have in your instance?

Ravi GH June 30, 2021

Please close this thread. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events