We use Jenkins multibranch pipelines to build different projects from a private Gitlab server.
We succesfully implemented the webhook from gitlab so that any push event triggers a build on Jenkins.
We are however, unable to trigger any kind of build for "Tag push" or "Merge request" events. Gitlab succesfully triggers the webhook but Jenkins does not detect any changes in the branches and therefore does not build anything.
I am now wondering if the following could be implemented :
- Whenever a MR or Tag push event is triggered, Jenkins multibranch could pick up the event, create a build with that specific context (clone the tag for a tag push or checkout the MR and build it for a MR event).
- This would create a new element in the list of builds in the multibranch view
What do you think ? is there any other way this could be done ?