Class BitbucketWebhookHandler
java.lang.Object
com.atlassian.bitbucket.jenkins.internal.trigger.register.BitbucketWebhookHandler
- All Implemented Interfaces:
WebhookHandler
The following assumptions is made while handling webhooks,
1. A single webhook will be used for all events
2. Input name and url is unique across all jenkins instance and will not shared by any system. Difference in URL only
is treated as a separate webook and will not be updated nor deleted.
Webhook handling is done in following ways,
1. If there are no webhooks in the system, a new webhook is registered
2. Existing webhook is modified to reflect correct properties of webhooks.
-
Constructor Summary
ConstructorsConstructorDescriptionBitbucketWebhookHandler(BitbucketCapabilitiesClient serverCapabilities, BitbucketWebhookClient webhookClient) -
Method Summary
-
Constructor Details
-
BitbucketWebhookHandler
public BitbucketWebhookHandler(BitbucketCapabilitiesClient serverCapabilities, BitbucketWebhookClient webhookClient)
-
-
Method Details
-
register
Description copied from interface:WebhookHandlerRegisters webhooks- Specified by:
registerin interfaceWebhookHandler- Parameters:
request- containing webhook related details- Returns:
- result of webhook registration.
-