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 > On 31-Jan-2019, at 8:54 PM, Aravind SV <[email protected]> wrote: > > Hello! > >> On Tue, Jan 29, 2019 at 23:20:46 -0800, [email protected] wrote: >> 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. > > 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 > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
