Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45838

MR/PR or Tag push from Gitlab to multibranch pipeline

XMLWordPrintable

      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 ?

            vaimr Denis Saponenko
            tekinico Nicolas Raynaud
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: