-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having issue parsing github request #330
Comments
Works on my machine. I created a pipeline like this:
I run that, manually, and I get your error. And that is totally ok, as long as the properties are applied and they are. I trigger it with:
It triggers and logs:
|
Sorry forgot to put the jenkins version 2.452.2. Which jenkins version is yours? I guess it shouldn't be related to jenkins version?
I directly use github to send the request, since curling our jenkins requires a crumb. Right now the workaround I have is to parse that payload in the script to get information I need. |
Jenkins and plugins versions report
Plugin version:
2.2.5
Jenkins verison:
2.452.2
I was trying to use example
generic-webhook-trigger-plugin/src/test/resources/org/jenkinsci/plugins/gwt/bdd/github/github-pull-request.feature
Line 7 in 3e64913
But github post body is wrapped in a
payload
element now. for exampleThen using
$.action
doesn't return anything for action.Example jenkins config file I have
Running the pipeline got below error
Even if I change from
$.action
to$.payload[0].action
, still nothing returns. I can only get the output of$.payload[0]
Does anyone also run into this?
The text was updated successfully, but these errors were encountered: