gitlab4j / gitlab4j-api

GitLab4J API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories via the GitLab REST API
MIT License
1.07k stars 462 forks source link

Webhooks : Pipeline events does not get builds/jobs #772

Open gdeimat opened 3 years ago

gdeimat commented 3 years ago

First, thanks for your great work on this library. It's really helpful and easy to use to manage our Gitlab project ;)

There is an issue with Pipeline Event, as mentioned in documentation pipeline events paylaod contains a "builds" array to give informations about pipeline jobs. Whereas PipelineEvent object from Gitlab4j API expect a "jobs" attribute.

PS : I use BuildEvent as workaround to get my jobs statuses.

luvarqpp commented 1 year ago

I see similar discrepancy in gitlab API. It seems that on job is sent "Job Hook", with "build" kind of data, which gets translated onto BuildEvent. IMHO this problem belongs to miss-mach on gitlab api design side.

https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#job-events