jenkinsci / bitbucket-branch-source-plugin

Bitbucket Branch Source Plugin
https://plugins.jenkins.io/cloudbees-bitbucket-branch-source
MIT License
216 stars 353 forks source link

Cache commit information identified by hash #838

Closed thomas-boehm-tractive closed 6 months ago

thomas-boehm-tractive commented 6 months ago

What feature do you want to see added?

Currently, the plugin sends a lot of requests to bitbucket for commit information in BitbucketCloudApiClient.java, requests to /commit/{hash} Those requests could be reduced quite a lot by caching this information, as a commit, identified by the hash, doesn't change anymore. This improves the problem of rate-limited requests to Bitbucket Cloud.

Upstream changes

No response

Are you interested in contributing this feature?

yes, I already have a working version and will open a PR for further discussion in a few minutes