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 160 forks source link

Implement precise job in the simplest way #276

Closed TomNewChao closed 1 year ago

TomNewChao commented 1 year ago

refer to issue: https://github.com/jenkinsci/generic-webhook-trigger-plugin/issues/272 refer to pr: https://github.com/jenkinsci/generic-webhook-trigger-plugin/pull/273

Let me use the easiest way to achieve the precise job.The precise job is generate an accurate path based on the configuration and request body content, and then find the job based on the path.

TomNewChao commented 1 year ago

@tomasbjerre Please help me review this code.