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

Gitea plugin stops multibranch scan at 30 branches

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • gitea-plugin
    • None
    • Jenkins 2.303.1, Gitea plugin 1.2.1, Gitea server version: 1.14.3

      I created a multibranch job with several branches for some testing. When I reached 30 branches, the Gitea plugin stopped adding new branches to the multibranch job. I switched to GitHub branch source plugin and it was able to continue adding branches.

      I searched for a Gitea branch scanning limit and did not find one in the Gitea configuration. However, I'm an inexperienced Gitea administrator and may have missed something in the configuration settings.

          [JENKINS-66594] Gitea plugin stops multibranch scan at 30 branches

          We had a similar problem concerning repositories of an organziation. I assume your issue is related.
          The problem is that the default number of results per page of the gitea api is 30 items.

          Gitea allows you to overwrite this default value in its configuration (app.ini) with the variable DEFAULT_PAGING_NUM in section 'api':
          Here is the link to the gitea documentation: https://docs.gitea.io/en-us/config-cheat-sheet/#api-api

          Hope this helps

          Julian Liebert added a comment - We had a similar problem concerning repositories of an organziation. I assume your issue is related. The problem is that the default number of results per page of the gitea api is 30 items. Gitea allows you to overwrite this default value in its configuration (app.ini) with the variable DEFAULT_PAGING_NUM in section 'api': Here is the link to the gitea documentation: https://docs.gitea.io/en-us/config-cheat-sheet/#api-api Hope this helps

          There is already an open issue for the pagination problem: JENKINS-63048

          Julian Liebert added a comment - There is already an open issue for the pagination problem: JENKINS-63048

          Mark Waite added a comment -

          Closing as a duplicate of JENKINS-63048

          Mark Waite added a comment - Closing as a duplicate of JENKINS-63048

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: