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

Load job variables into plugin #180

Closed malachiobadeyi closed 4 years ago

malachiobadeyi commented 4 years ago

We have a remote Jenkins file which is shared across teams and projects. Individual build actions are controled by a yaml file in each teams repo. It would be useful if we could load the yaml file as part of the webhook trigger and trigger a build based on regex matching on variables defined in file. Is that possible? If not do you have any thoughts on how I could achieve the same outcome in a different way?

tomasbjerre commented 4 years ago

Perhaps trigger one job in jenkins using this plugin. Let that job clone whatever repo and do that regexp natching on tje yaml. Let it trigger other jobs based on its findings.