Add more options for Jenkins CI Merge Request trigger
Description
I am using the Jenkins CI integration to launch a Jenkins job to test each merge request before it gets merged. I am interested in running this CI job whenever a merge request is created (Merge Request trigger) or its code is updated (Push trigger):
If the description of the merge request changes or someone approves the merge request, the CI job shouldn't run.
Currently, a single check box covers all scenarios related to merge request events, so there's no way to trigger a job only when a merge request is created but not when it's approved.
Proposal
The Merge Request trigger options can be expanded to allow users to choose which merge request events are important and which can be ignored:
Additionally, it'd be nice if the type of Merge Request event were stored in an environment variable that I could read from my Jenkins job.
Links / references
This feature request is related to https://github.com/jenkinsci/gitlab-plugin/issues/633