jenkinsci / jenkinsci/gitlab-plugin
Incorrect labels and branch names are displayed in the "Filter merge request" fields
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 615
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 10
Description
### Jenkins and plugins versions report
Jenkins: 2.319.3
OS: Linux - 5.3.0-40-generic
gitlab-plugin:1.5.28
### What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu 18
### Reproduction steps
1. Step1 - in the job's code add connection to Jenkins Shared Libraries.
2. Step2 - the code should be located on a Gitlab repository.
3. Step 3 - create some branches and labels on this repository.
4. Step 4 - build the job.
5. Step 5 - open the configuration. Click on "Build triggers" - Advanced. On the "Allowed branches" click "Filter branches by name". Try get the branch names - have a look that the branch names are coming from Jenkins Shared Libraries and not from the Gitlab repository with the code.
6. Step 6 - the same is if you select "Filter merge request by label" - the labels are brought from the Jenkins Shared libraries.
### Expected Results
The labels and the branches should be displayed from the Gitlab project with the code and not from the Jenkins Shared libraires.
### Actual Results
The labels and the branches are displayed from the Jenkins Shared libraries and not from the Gitlab repository with the code.
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.