I'm building an azure pipeline and using an Incoming WebHook as the trigger.
I need to access the data I'm sending in the JSON Payload in Bash, the documentation only has the following example in PowerShell and there no any other docs about how to access that Payload
resources:
webhooks:
- webhook: MyWebhookTrigger ### Webhook alias
connection: MyWebhookConnection ### Incoming webhook service connection
filters:
- path: repositoryName ### JSON path in the payload
value: maven-releases ### Expected value in the path provided
- path: action
value: CREATED
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
### JSON payload data is available in the form of ${{ parameters.<WebhookAlias>.<JSONPath>}}
script: |
Write-Host ${{ parameters.MyWebhookTrigger.repositoryName}}
Write-Host ${{ parameters.MyWebhookTrigger.component.group}}
I tried to check the Environment Variables in bash but couldn't find anything there any pointers on what this means ${{ parameters.MyWebhookTrigger.repositoryName}} in Powershell and how can I do the same in bash?