0

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 ?

user757586
  • 11
  • 1
  • 4

1 Answers1

0

If you trigger the job with Generic Webhook Trigger Plugin you can resolve the event into a variable and use that in the pipeline.

Tomas Bjerre
  • 3,270
  • 22
  • 27