I have a GitHub webhook triggering a Jenkins pipeline job. I've set 2 events that triggers the webhook (like pull requests and deploy).
Once my Jenkinsfile triggered, I want to run different stages according to the type of event that triggered the hook, but I can't find any variable giving me this event type. Is there a way to find it ?