WebhookResult

1 minute readReference

processWebhookTrigger

Processes webhook events.

Arguments

Argument Name Type Description

tokenId

String

Access token public ID to use for processing webhook request. (Required)

httpMethod

String

HTTP method for processing webhooks.

webhookHeader

String

Headers associated with the request in the JSON format.

webhookPayload

String

Payload from webhook.

webhookUrl

String

Full raw URL of the CloudBees CD/RO server, as it is called by the third-party system.

Usage

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.processWebhookTrigger( tokenId: 'test-tokenId' /* optional arguments */)