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

How to programmatically find BB project using revision (commits)?

Chi Dang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 8, 2024

I need to find the BitBucket projects using only SonarQube information.

I do not know the BitBucket project.

I run the below API from SonarQube using project key.

- GET batch/project

Screenshot 2024-01-08 at 11.24.21 AM.png

This API returns the revision list for BitBucket commits in the field "fileDataByPath".

Screenshot 2024-01-08 at 11.37.35 AM.png

 

How can I use the revision to find the detailed info programmatically (using the API) without knowing the project or repo slug on BitBucket server.

Using BitBucket server UI, I can enter the revision in a Search box and find it.

Thanks,

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events