jenkinsci / jenkinsci/gitlab-plugin

Gtilab MR*s webhook trigger jenkins using only master branch for pulling code

Open
#1,470 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
1.4k
Forks
615
Avg merge
4h 32m
Merged PRs (30d)
10

Description

### Jenkins and plugins versions report

When creating or updating a merge request, the webhook triggers the pipeline, but instead of using the source branch (the one with the changes), it always takes the master branch.

![image](https://github.com/jenkinsci/gitlab-plugin/assets/75979089/863eb075-9bcb-4eec-ab23-8d8466a8a31d)

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

Gitlab plugin version: 1.5.20
Gitlab version: 15.8.5-ee
Jenkins version: 2.263.4
Job type: Pipeline

### Reproduction steps

Create or update a merge request.
Job start with master branch.
Pipeline runs with wrong configuration(outdated from master not my new branch).

### Expected Results

Job start with _source_ branch(Branch where the changes were made).

### Actual Results

Pipeline runs with wrong configuration(outdated, from master not my new branch).

### Anything else?

_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.