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
404 stars 159 forks source link

"Override Quiet Period"(Generic Webhook Trigger)is it available ? #263

Closed xtucg closed 1 year ago

xtucg commented 1 year ago

A Curl command can look something like this:

curl -H "Content-Type: application/json" -X POST -d '{ "app":{ "name":"GitHub API", "url":"http://developer.github.com/v3/oauth/" }}' http://localhost:8080/jenkins/generic-webhook-trigger/invoke?token=sometoken&jobQuietPeriod=60

I have allowed the trigger to override this job's quiet period,but "jobQuietPeriod" doesn't seem to work?(quiet period is still default 5)

tomasbjerre commented 1 year ago

Change it to:

curl -H "Content-Type: application/json" -X POST -d '{ "app":{ "name":"GitHub API", "url":"http://developer.github.com/v3/oauth/" }}' "http://localhost:8080/jenkins/generic-webhook-trigger/invoke?token=sometoken&jobQuietPeriod=60"

xtucg commented 1 year ago

Change it to:

curl -H "Content-Type: application/json" -X POST -d '{ "app":{ "name":"GitHub API", "url":"http://developer.github.com/v3/oauth/" }}' "http://localhost:8080/jenkins/generic-webhook-trigger/invoke?token=sometoken&jobQuietPeriod=60"

It worked, thank you