# Bitbucket triggers builds on deleted branches

**URL:** https://community.codefresh.io/t/bitbucket-triggers-builds-on-deleted-branches/575
**Category:** Pipeline Triggers
**Created:** [July 2, 2021, 6:35pm UTC](https://community.codefresh.io/t/bitbucket-triggers-builds-on-deleted-branches/575 "2021-07-02T18:35:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![valwork2021](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/valwork2021/32/328_2.png) [@valwork2021](https://community.codefresh.io/u/valwork2021)
#### Post date: [July 2, 2021, 6:35pm UTC](https://community.codefresh.io/t/bitbucket-triggers-builds-on-deleted-branches/575/1 "2021-07-02T18:35:48Z")

</div>

I configured Bitbucket webhook to trigger on Repository push.  
After each merge (which also deletes the source branch) it triggers build, which fails because of deleted branch.

Does anyone have the same experience?  
How do you deal with it?

---

<div class="post-metadata">

### Author: ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)
#### Post date: [July 7, 2021, 10:27am UTC](https://community.codefresh.io/t/bitbucket-triggers-builds-on-deleted-branches/575/2 "2021-07-07T10:27:10Z")

</div>

Hello

We need more details here in order to investigate. Please open a support ticket (from the top right menu in the Codefresh UI).

Be sure to include the URL of the build that has the issue.
