How to Trigger Jenkins Jobs from GitLab Webhooks by Branch

A step-by-step guide to wiring GitLab push events to separate Jenkins jobs for staging and main branches using the Generic Webhook Trigger…