Class BitbucketWebhookHandler
- java.lang.Object
-
- com.atlassian.bitbucket.jenkins.internal.trigger.register.BitbucketWebhookHandler
-
- All Implemented Interfaces:
WebhookHandler
public class BitbucketWebhookHandler extends Object implements 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
Constructors Constructor Description BitbucketWebhookHandler(BitbucketCapabilitiesClient serverCapabilities, BitbucketWebhookClient webhookClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketWebhook
register(WebhookRegisterRequest request)
Registers webhooks
-
-
-
Constructor Detail
-
BitbucketWebhookHandler
public BitbucketWebhookHandler(BitbucketCapabilitiesClient serverCapabilities, BitbucketWebhookClient webhookClient)
-
-
Method Detail
-
register
@Nullable public BitbucketWebhook register(WebhookRegisterRequest request)
Description copied from interface:WebhookHandler
Registers webhooks- Specified by:
register
in interfaceWebhookHandler
- Parameters:
request
- containing webhook related details- Returns:
- result of webhook registration.
-
-