I want to trigger a jenkins multi-branch pipeline based on merge requests in a gitlab repo. I checked only merge requests on Integrations->JenkinsCI
in the gitlab project. But when I create a merge request to master, the pipeline is not getting triggered.
If push box is checked, the pipeline triggers as expected. I do not want to build the pipeline for every push.
Why isn't merge request trigger working? what am I doing wrong? Is there any way to trigger jenkins pipeline only when a merge request is create/updated/merged?
EDIT: I realized that in the README section of gitlab-plugin repo it is mentioned that merge request hooks are ignored as below. "Due to this, the plugin just listens for GitLab Push Hooks for multibranch pipeline jobs; merge Request hooks are ignored." Does this mean merge request hooks are not supported for multibranch pipeline? Does anyone have alternative suggestions to make "merge request only" trigger work?