jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.43k stars 613 forks source link

Add pipeline step to close merge request #643

Open mattiasb opened 6 years ago

mattiasb commented 6 years ago

Hi!

It would be neat to be able to close a GitLab merge request inside a Jenkins pipeline.

Some background: I'm building a build queue for the company I work at that will automatically rebase, merge and push semi-linear merge commits (GitLabs nomenclature). When a rebase is needed the new commits will have new SHA:s, which means that GitLab won't understand that the branch is actually merged (kinda). So I would like to be able to close them instead. :)

omehegan commented 6 years ago

I will mark this as a feature request, but I can't guarantee anyone will work on it. You could probably also accomplish this with just a GitLab API call via curl, which you could wrap in a sh build step.