I want to create Branch Plans as soon as a user creates a branch in Bitbucket. We've got polling enabled but the other devs are getting too impatient. I've already setup webhooks to trigger builds as soon as they commit code but creating feature branches still causes grief. I'm looking for a way to get Bitbucket to trigger the creation of the Branch plan.
I can see that I could manually call into the Bamboo API by
curl -X PUT --user admin:admin http://localhost:8085/rest/api/latest/plan/ABC-UAT/branch/feature-abc-123?vcsBranch="feature/abc-123"
I thought about using a webhook within Bitbucket but I don't see anywhere where I can include variable names (ie branch name). We use GitFlow and we build Branch Plans off of feature and release branches.