Support triggering Bitbucket service hooks based on a filter of branches and tags (BB-4476)

Newer versions of build systems such as Bamboo and Jenkins support being able to build from specific branches. The services on Bitbucket should be able to be filtered to trigger only on pushes involving specific branches/tags.

We would be very interested in a solution to this, too. We want to trigger a Bamboo build, but only when a branch within the repository changes.
We had to move to polling from Bamboo Build Plan rather than triggering a Build Plan Branch to process when a Bitbucket branch is updated. We would rather use a trigger from Bitbucket, but not trigger when ANY branch is updated.
(Currently using Bamboo version 5.5.1. We are upgrading to latest version later this month.)

My repository has two major branches, online branch and test branch. I need to deploy each branch on different environment, for now I can not tell which branch is changed from web hook, so I have to deploy both, that's really Nasty.