Code Snippet

Just another Code Snippet site

Jenkins / Gitlab : Merge Request

Follow the installation procedure from “Gitlab Merge Request Builder Plugin”.

The jenkins job must contains parameters, at least : gitlabSourceBranch and gitlabTargetBranch.

GitLab : In case the webhooks test return a 403 error, the Jenkins Security configuration must be updated as follows :

Jenkins > Configure Global Security :

Uncheck “Prevent Cross Site Request Forgery exploits

Markeup Formatter “Safe HTML”

,


2 thoughts on “Jenkins / Gitlab : Merge Request

  • Olivier says:

    The Gitlab user used to define in Jenkins configuration must have access to the gitlab project (at least as Developer)

  • Olivier says:

    To display the Pipeline and Job information in GitLab, the user must have Developer privilege and not only Reporter.

    The pipeline must be enabled also by creating the YML file (.gitlab-ci.yml)
    The file can be then deleted.

Leave a Reply

Your email address will not be published. Required fields are marked *