Closed gongsu832 closed 3 years ago
Can you supply your full configuration? A screenshot showing the parameters and the plugin configuration. Or Job DSL would also work if that is what you are using.
@tomasbjerre here is the capture of my job configuration. Thanks. jenkins-merge Config [Jenkins].pdf
It is because none of the resolved variables from this plugin are being resolved to variable with name of the parameter: github_webhook_uuid
You only resolve:
github_webhook_payload
x_github_delivery
x_github_event
Ahh, thought the parameter name could be arbitrary as long as its default value gets resolved. Changing github_webhook_uuid
to x_github_delivery
worked. I now get two triggers. Thanks!
BTW, I have another problem. I created a secret text credential for the "Token Credential" using the "Add" button next to it. But in the pull-down menu nothing shows up so I cannot select the credential (see the attached screenshot). I thought it might be a browser problem so I tried chrome, firefox, and safari but they all behave the same.
Ok good! The credentials thing should be its own issue.
Jenkins version: 2.263.1 Generic Webhook Trigger Plugin version: 1.72
I have a freestyle job setup to receive webhook POSTs from github. When a pull request is merged, two webhook events are POSTed, one is a
pull_request
event with the payload{"action": "closed", ...}
and the other is apush
event with the payload{"ref": "refs/heads/master", ...}
. I have followed the document to make the job parameterized and use theX-GitHub-Delivery
UUID in the POST header for the unique value. However, I still only get one job triggered which shows two UUIDs in the console output:and the
{"ref": "refs/heads/master", ...}
payload is lost.