jenkinsci / generic-webhook-trigger-plugin

Can receive any HTTP request, extract any values from JSON or XML and trigger a job with those values available as variables. Works with GitHub, GitLab, Bitbucket, Jira and many more.
https://plugins.jenkins.io/generic-webhook-trigger
410 stars 162 forks source link

Expose request JSON payload as an object in a variable #295

Open IreshMM opened 9 months ago

IreshMM commented 9 months ago

What feature do you want to see added?

Would it be possible to expose the payload of a JSON POST request as an object in groovy? for example, a variable called request_body. It's already possible to take the entire JSON as a string to a variable and parse it but I think this would make it more convenient.