Hi, I am trigeering a cloudbuild with a webhook from GITHUB and using inline YAML.
The documentation sed that it can be done with Substitution variables but I get error 'cloud build substitution variable "invalid character k looking for beginning of'
This parameters is in payload of webhook.
Thanks in advance for any help!
Hi @gcoellof,
The issue likely came from invalid characters being passed in the webhook's payload. Below is the answer based on Google Cloud documentation.
If the steps above do not work, you can contact Google Cloud Support for a more in-depth analysis. When contacting them, please provide comprehensive details and include screenshots. This will help them better understand and address your issue.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
Hi, thanks for the reply, how can I Sanitize the webhook payload? or How can I get the whole payload or request payload?
When I using substitution variable I got:
Thanks in advance, I am making a case too....
With webhook payload when I try to print only $BUILD_ID and $PROJECT_ID have data: