YAML Schema
resources: - name: <string> type: IncomingWebhook configuration: webhookName: <string>
Tags
name
An alphanumeric string (underscores are permitted) that identifies the resource.
type
Must be IncomingWebhook
for this resource type.
configuration
Specifies all configuration selections for the resource.
Tag | Description | Required/Optional |
---|---|---|
webhookName | The name of an Incoming Webhook Integration | Required |
Environment Variables
Whenever IncomingWebhook
is used in a step, a set of environment variables is automatically made available that you can use in your step.
Environment Variable | Description |
---|---|
res_<resource_name>_name | Name of the resource |
res_<resource_name>_payload | Webhook payload that was received in the incoming POST or created by the step for output |
Example
- This example requires an Incoming Webhook Integration.
- The Pipelines DSL for this example is available in this repository in the JFrog GitHub account.
resources: - name: MyIncomingWebhookResource type: IncomingWebhook configuration: webhookName: MyIncomingWebhookIntegration pipelines: - name: ExamplePipeline steps: - name: ExampleStep type: Bash configuration: inputResources: - name: MyIncomingWebhookResource execution: onExecute: - echo "$res_MyIncomingWebhookResource_payload" | jq '.' > payload.json - read_json payload.json "LESSER_SECRET_FORMULA"