I've noticed that the plugin looks up all branches of a repository to get the only needed one during the startup phase of a build. This happens here and is based on a bug in Gitea which has been fixed many years ago so the loop can be removed.
[JENKINS-65796] Unnecessary branch retrieval loop on build startup
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Fixed but Unreleased [ 10203 ] |
Released As | New: https://github.com/jenkinsci/gitea-plugin/releases/tag/gitea-1.3.0 | |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Created a PR to fix this: https://github.com/jenkinsci/gitea-plugin/pull/29