Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50582

Limit amount of requests sent to BitBucket API

XMLWordPrintable

      Hi all,

      Company I work for uses Bitbucket + Mercurial repositories.

      Couple of repositories are really old and accumulated massive amount of branches.

      For some time already we observe longer and longer delays between Bitbucket commit webhook dispatch and the moment Jenkins starts to execute first line of our Pipeline.

      Delay in our case is from 5 to even 10 minutes which is very painful.

      After some digging and playing around I managed to build custom version of plugin that tries to fix this problem.

      https://github.com/jenkinsci/bitbucket-branch-source-plugin/compare/master...lukaswoj:master

      I believe that following above changes in scope of pagelen parameter being set to 100 (current maximum for which Bitbucket allows) would be a simple fix and at the same time it should make a lot of users happy. Those changes shortened ~5 minutes to "just" 30 seconds.

       

      Sorry for this contribution not being as it should, this was my first time ever working with Java code, Maven and locally launched Jenkins.

            Unassigned Unassigned
            lukaswoj Łukasz Wojciechowski
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: