Interface BitbucketWebhookProcessorListener
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
WebhookProcessorListenersHandler
Listener for
BitbucketWebhookProcessor to receive notification about
each steps done by the matching processor for an incoming webhook.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Method Summary
Modifier and TypeMethodDescriptionvoidNotify of failure while processing the incoming webhook.voidonProcess(String eventType, String payload, BitbucketEndpoint endpoint) Notify after the processor has processed the incoming webhook payload.voidonStart(Class<? extends BitbucketWebhookProcessor> processor) Notify when the processor has been matches.
-
Method Details
-
onStart
Notify when the processor has been matches.- Parameters:
processor- class
-
onProcess
void onProcess(@NonNull String eventType, @NonNull String payload, @NonNull BitbucketEndpoint endpoint) Notify after the processor has processed the incoming webhook payload.- Parameters:
eventType- of incoming requestpayload- content that comes with incoming requestendpoint- that match the incoming request
-
onFailure
Notify of failure while processing the incoming webhook.- Parameters:
failure- exception raised by webhook consumer or by processor.
-