The Gitlab team actually merged some stuff in to make it possible to fire web hooks whenever a merge request is opened or updated: see https://github.com/gitlabhq/gitlabhq/pull/5881 and https://github.com/gitlabhq/gitlabhq/issues/1137
Gitlab hook on opening merge request
-
02-07-2022 - |
Question
I have a buildbot server and Gitlab. I could not figure out, to trigger builds whenever a merge request is opened on Gitlab. The purpose should be, that buildbot writes a comment back to the merge request whenever a build succeeds or fails (where as the build is done on the merge request + the upstream branch).
Any hints how to trigger that?
Thanks!
Solution
OTHER TIPS
You could implement a service
like the one for GitLab CI
. This actually posts back to the merge-request whether GitLab CI
passed or failed the test-suite.
I implemented one and am contributing it back to the buildbot project, see https://github.com/buildbot/buildbot/pull/1820
It uses webhooks and posts comments back to the merge request to show build status.