Contentful logo

Contentful Community

Contentful - bitbucket

I am currently using webhook to trigger build on our bitbucket repo on published events.
Right now if there are 10 published events in 30 seconds, it will trigger the build 10 times.
Is there anyway to avoid this ? Ideally we only want to do one build if there are multiple published events in a short period of time

Thanks