jenkinsci / jenkinsci/gitlab-plugin

Add webhook release events job trigger

Open
#1,466 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
1.4k
Forks
615
Avg merge
4h 32m
Merged PRs (30d)
10

Description

### What feature do you want to see added?

It would be great to add a GitLab webhook **release event** to the build triggers. This would allow the Jenkins build to be triggered when a release is created or updated in GitLab. It would also be useful to have an option to distinguish (e.g. in pipeline) whether an event is related to the creation or update of a release.
Please find some reference in GitLab docs - [webhook release events ](https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#release-events)

Release event trigger in GitLab webhook config:
![image](https://user-images.githubusercontent.com/62556816/236427953-a0f4cd5d-7b8d-4f3a-b616-f1a22643ccea.png)

Options available in **Build Triggers** section in Jenkins pipeline configuration:
![image](https://user-images.githubusercontent.com/62556816/236706711-98f3579d-2512-47c4-81d9-fcd844b6d92e.png)

I think this functionality would find some really nice use cases.
Thanks

### Upstream changes

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.