gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

Webhooks : Pipeline events does not get builds/jobs

Open gdeimat opened this issue 4 years ago • 1 comments

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.

gdeimat avatar Oct 13 '21 14:10 gdeimat

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

luvarqpp avatar Jul 12 '23 11:07 luvarqpp