gitlab-branch-source-plugin
gitlab-branch-source-plugin copied to clipboard
Add Retries And Backoff To GitLabSCMSource:getMembers
I've been experiencing errors with rate limits on the organization folder scan, and checking out merge requests, due to GitLab reducing the API limit to these endpoints to 60/minute (https://gitlab.com/gitlab-org/gitlab/-/issues/580116), to resolve this I've added retries and backoff to the getMembers method in GitLabSCMSource
Resolves JENKINS-76277
Testing done
I've written unit tests for the getMembers method, this has also been tested on my jenkins server by creating an organization folder, forcibly using up my API limit on my access token, then running a scan and the retries successfully ran.
Submitter checklist
- [x] Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [ ] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests that demonstrate the feature works or the issue is fixed