Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab Merge request events not triggering Jenkins Multi-branch pipeline

I'm trying to trigger Jenkins Multi-branch pipeline job with GitLab Webhook on Merge request events.

When I'm testing the Webhook, I'm getting this message:

Hook executed successfully but returned HTTP 409

When I'm setting different GitLab Webhook, like Tag push events, it works.

Is GitLab Merge request events Webhook not supported with Jenkins multi-branch pipeline? Am i missing something?

If it's not supported, does anyone have workaround for that?

Thanks!

like image 819
Elad Eizner Avatar asked Jun 18 '18 16:06

Elad Eizner


People also ask

How trigger build in Jenkins when GitLab commit?

Scroll down to the Build Triggers section. Enable the checkbox for Build when a change is pushed to GitLab . Leave all options at their default value. In the expanded section, locate the Repository URL field and copy/paste the GitLab project URL (same URL as step 2).


1 Answers

https://github.com/jenkinsci/gitlab-plugin#git-configuration-for-multibranch-pipelineworkflow-jobs

Yeah, the readme notes that this functionality is not supported. Merge Events are just ignored as of now.

In this thread a user suggests some plugins that may add this support. I have not tried them myself and can not vouch.
https://github.com/jenkinsci/gitlab-plugin/issues/416

like image 185
Austin Hardaway Avatar answered Sep 23 '22 15:09

Austin Hardaway