-
Notifications
You must be signed in to change notification settings - Fork 28
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
Changes variable does not serialize to Json #98
Comments
Thanks for finding that. All of the object ones in the model will probably have the same issue. |
Thinking about this some more, probably all json fields need to be "serialised". |
Serialises anything that is not a String,Integer or Boolean as JSON (for the jsonTemplate template. Seems to have broken the "UNRESOLVED" fallback.
I have added support to the However, I've realised that the format is fixed, and not really that useful, unless you can access parts of it. I suppose if you're post processing it on the server side once the webhook is delivered, it might be ok, but if you are wanting to do something smarter with the values inside the template, you will need a smarter templating tool. |
Serialises anything that is not a String,Integer or Boolean as JSON (for the jsonTemplate template).
Expected Behavior
When template contains configuration:
Payload would contain fields related to the VCS changes that triggered the build (shown in https://github.com/tcplugins/tcWebHooks/wiki/Example-Webhook-Output---JSON)
Current Behavior
Changes variable does not serialize to Json
Steps to Reproduce (for bugs)
Your Environment
Example Configuration (xml)
The text was updated successfully, but these errors were encountered: