Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build only if new commits were pushed to Merge Request seem to be not working #1674

Open
ChristRm opened this issue Jul 30, 2024 · 0 comments
Labels
bug For changelog: Minor bug. Will be listed after features

Comments

@ChristRm
Copy link

ChristRm commented Jul 30, 2024

Jenkins and plugins versions report

Jenkins 2.452.3
Gitlab plugin 1.8.1

Environment
Paste the output here

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

Jenkins installed on Mac OS X Ventura 13.5.2

Reproduction steps

Create a Webhook on Gitlab with the following config:
Push events: All branches
Comments
Merge request events

Create a Jenkins Freestyle job which is linked to this web hook and config it the following way:
Build when a change is pushed to GitLab. GitLab webhook URL: http://****
and the config
Push events
Opened Merge requests
Merge request events
Build only if new commits were pushed to Merge Request
Approved merge requests

Expected Results

The job is triggered only if
MR is created
The push is made to the MR branch

Actual Results

The job is triggered whenever any push to any branch is done

Anything else?

There is a suspicion that the issue could be in the following topic, where the ref spec value cannot be set with the recommended value by documentation
https://issues.jenkins.io/browse/JENKINS-73527

Are you interested in contributing a fix?

No response

@ChristRm ChristRm added the bug For changelog: Minor bug. Will be listed after features label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Minor bug. Will be listed after features
Projects
None yet
Development

No branches or pull requests

1 participant