I am sending a JSON payload to my Gitlab CI Pipeline, via the Gitlab Webhook, as the Trigger.
The trigger works, however I need to be able to parse the JSON sent via the Web hook, as it contains the values, for my script's variables.
Question:
Is there a way, I can use the '.gitlab-ci.yml' file, and pull out the content sent, via the Web hook's POST?
Is it possible for a Gitlab Webhook to use a variable that contains the JSON payload, and pass the variable and its content, into the '.gitlab-ci.yml' file?
I am open to any solution.
The end goal would be to parse the JSON sent in the Web Hook POST, with my Powershell scripts, and pass the parsed JSON values to my Variables, as their inputs.
Thank you
Similar questions have been asked, with no updated answer Read webhook payload in Gitlab CI