Skip to content

Include job tags in build webhook event payload

What does this MR do and why?

The existing Job (build) webhook event does not provide information about any tags defined for the job. The runner object already exposes the relevant runner tags, but the runner attribute is not included in the webhook until after the job is picked up and running.

Use cases

  • Autoscaling: More effective self-hosted runner scaling by having the job tags available in the webhook payload during created and pending status.
  • Reporting: More insights when ingesting webhooks to external reporting tools.

Screenshots or screen recordings

Before (GitLab.com) After (Local GDK)
image image

How to set up and validate locally

  1. Enable "Job" Webhooks for a group/project
  2. Initiate a pipeline
  3. Inspect the outgoing event payload in webhook settings
Edited by Mike Heyns

Merge request reports

Loading