Gitlab Webhook Merge request events not triggering pipeline

28 views
Skip to first unread message

kama...@cloudkata.com

unread,
Jan 30, 2019, 2:20:47 AM1/30/19
to go-cd
Hi,

We are facing an issue that gitlab webhooks are not triggering the pipeline when sending only Merge Request Events.However Push Events are triggering the build. Is anyone aware of this issue.

Thanks
kamalika

Aravind SV

unread,
Jan 31, 2019, 10:24:04 AM1/31/19
to go...@googlegroups.com
Hello!
Do you mean: https://api.gocd.org/current/#hosting-your-repository-on-gitlab ?

This might be relevant: https://github.com/gocd/gocd/blob/3e31c091e2dd78c50facc46562e17541e8bfa711/server/webapp/WEB-INF/rails/app/controllers/api/web_hooks/git_lab_controller.rb#L48

Maybe the assumption is that merge events show up on a pipeline tracking master, and that's expected to be polling? I can see why merge events being ignored could be a problem.

Cheers,
Aravind

Kamalika Majumder

unread,
Jan 31, 2019, 11:26:59 AM1/31/19
to go...@googlegroups.com
Yes,
I figured it out later in the code that it allows only push events.
This might be a feature that you might want to include. Since many who
are doing trunk based development in enterprises use merge requests
approval as the entry point to master and trigger build only on that
event or else the pipelines goes for a loop of instances.

For now we have figured a work around.

Thanks
Kamalika

Sent from my iPhone
> --
> You received this message because you are subscribed to the Google Groups "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

munchrall

unread,
May 19, 2020, 11:18:42 PM5/19/20
to go-cd
What has been your workaround?
> To unsubscribe from this group and stop receiving emails from it, send an email to go...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages