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

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

Closed matthuisman closed 6 months ago

matthuisman commented 6 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 6 months ago

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

matthuisman commented 6 months ago

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

tomasbjerre commented 6 months ago

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