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

Add a way to test a webhook is triggered but doesn't actually run the job (dry run) #300

Closed matthuisman closed 7 months ago

matthuisman commented 7 months ago

What feature do you want to see added?

Maybe just a HEADER we can add to the request that tells the plugin to not actually start the job. Everything else remains the same including the returned Triggered payload etc

tomasbjerre commented 7 months ago

Releasing this now. See README: https://github.com/jenkinsci/generic-webhook-trigger-plugin?tab=readme-ov-file#dry-run

matthuisman commented 7 months ago

Wow 😲 that's quick. Really appreciated. Keep up the awesome work

tomasbjerre commented 7 months ago

Thanks for the good idea! I think it is a really nice feature.