Skip to content

Conversation

nfalco79
Copy link
Member

Add an extension point to notify the listener of all processing steps for each incoming webhook, allowing it to perform additional operations.
Each listener runs asynchronously with respect to the webhook's processing, but receives processor events sequentially and in an ordered manner.

Add an extension point to notify the listener of all processing steps for each incoming webhook, allowing it to perform additional operations.
Each listener runs asynchronously with respect to the webhook's processing, but receives processor events sequentially and in an ordered manner.
String eventType = hookProcessor.getEventType(Collections.unmodifiableMap(reqHeaders), MultiMapUtils.unmodifiableMultiValuedMap(reqParameters));

hookProcessor.process(eventType, body, context, endpoint);
listenersHandler.onProcess(eventType, body, endpoint);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failures such as

BitbucketPushEvent push = BitbucketCloudWebhookPayload.pushEventFromPayload(payload);
failing to parse the json(?) will still show success

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That depends on processors. If processor will handle payload without throw exception than listener will be notified as processed with success

@nfalco79 nfalco79 merged commit 43b6f8e into master Oct 5, 2025
18 checks passed
@nfalco79 nfalco79 deleted the feature/JENKINS-76156 branch October 5, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants