jenkinsci / jenkinsci/gitlab-branch-source-plugin

when a gitlab organization contains more than 100 git repo in a group, less than 100 are seen

Open
#513 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
134
Forks
113
PR merge metrics
No merged PRs in 30d

Description

### Jenkins and plugins versions report

When a gitlab organization contains more than 100 git repositories (without subgroups, flatly) in a group, less than 100 are seen.

This has been noticed with Jenkins 2.504 using the GitLab Branch Source Plugin Version 724.v6e30226050b_3 against GitLab Community Edition [v18.4.2](https://gitlab.com/gitlab-org/gitlab-foss/-/tags/v18.4.2).

We guess that somewhere [the pagination](https://docs.gitlab.com/api/rest/#offset-based-pagination) is incorrect.

It would be great if this could be corrected !

### What Operating System are you using (both controller, and any agents involved in the problem)?

The controler was using rocky linux 9.

### Reproduction steps

1 - create one hundred and one repositories in a group in GitLab
2 - in jenkins create an organizaton folder pointing to that group

### Expected Results

The gitlab organization folder should see all the repos in the gitlab group.

### Actual Results

The gitlab organization folder should see only 100 repositories.

### Anything else?

_No response_

### Are you interested in contributing a fix?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.