YAML Schema
resources: - name:type: IncomingWebhook configuration: webhookName:
Tags
name
Analphanumericstring (underscores are permitted) that identifies the resource.
type
Must beIncomingWebhook
for this resource type.
configuration
Specifies all configuration selections for the resource.
Tag |
Description |
Required/Optional |
---|---|---|
webhookName |
The name of anIncoming Webhook Integration | Required |
Environment Variables
WheneverIncomingWebhook
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_ |
Name of the resource |
res_ |
Webhook payload that was received in the incoming POST or created by the step for output |
Example
- This example requires anIncoming Webhook Integration.
- The Pipelines DSL for this example is available inthis repositoryin theJFrogGitHub 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"