We have a ButBucket configuration defined to build a repo where the branch is specified as "releases/*". This configuration has a promotion to a deployment configuration but when this promotion is triggered on a specific build, the promotion is run once for every matching releases branch. So if there are two branches (releases/1.0, and releases/2.0) the single button press runs the promotion twice.
An issue is filed:
For now, please do not use wildcard in repository definition of the target configuration of the promotion (if you are using the same repository as release configurations, you may script the branch field to only return wildcard for branch configurations).
Since the Git repo is inherited and the branch is obtained from a script variable it's a little tricky but I found a workaround where I set that value on the promotion to ${build.getRepository('Git Source Repository').getActualBranch()}. But having the fix above would be great. Thanks!