I need to build a report and need the list of pipelines ran between two dates timestamp in the entire workspace with their current status.
I found the below API to get the pipelines, but it only returns the data for one repo at a time. This API also has a limitation of thousand calls per hour, and I have more than a thousand repositories in my workspace-
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pipelines/
Please suggest how I can solve this.
Thanks,
Dev
Thanks for reaching out to the community.
Indeed, you can use that Pipelines Bitbucket Cloud REST API endpoint to get your Pipelines builds.
However, I'm afraid it will only get Pipelines builds one repository at a time.
You'll have to make multiple requests to get Pipelines builds from multiple repositories.
That is also true that we have the API rate limits for the API endpoints from /2.0/repositories.
For this, we normally suggest doing the following to avoid getting rate limited:
You mentioned that you need to build a report to list Pipelines builds.
May I know if you wanted to get Pipelines build minutes usage across your repositories?
Regards,
Mark C
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.