jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.43k stars 613 forks source link

[Filter branches by name] Branch exist but get the "Following patterns don't match any branch in source repository: xxx" #1680

Open kobayashilin opened 4 weeks ago

kobayashilin commented 4 weeks ago

Jenkins and plugins versions report

Jenkins: 2.462.1 OS: Linux - 5.15.0-118-generic Java: 17.0.12 - OpenJDK 64-Bit Server VM

... git:5.3.0 git-client:5.0.0 gitlab-plugin:1.8.1 ...

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

Ubuntu 22.04.4 LTS

Reproduction steps

My project has 30 branches

  1. Build Triggers
  2. Build when a change is pushed to GitLab. GitLab webhook URL: xxx
  3. Advanced
  4. Filter branches by name
  5. Type branch name e.g., test to Include text field

Expected Results

Matching 1 branch.

Actual Results

There is a yellow warning message → Warning : Following patterns don't match any branch in source repository

Anything else?

If I type lower alphabet branch e.g., apple-test It can be found. I think the root cause that is check only first 20 branches with ASC alphabet order. Could we configure the count of branches?

Are you interested in contributing a fix?

No response