Hi I am trying to trigger a Bamboo build based on a PR merge event on Bitbucket repository, using webhooks in Bitbucket.
So the scenario is:
1) A PR is merged in a repo
2) Bitbucket will fire a webhook at the Bamboo plan build URL. which is set to: "http://admin:admin@bamboo:8085/rest/api/latest/queue/F5O-IAC?os_authType=basic"
3) A Bamboo Plan will be triggered.
What I have done so far:
1) Configured a webhook in Bitbucket based on PR Merge event using the above URL.
2) Configured Bamboo with a Plan: (The following variations have been tried)
2.a. A Bamboo plan with no repository and no trigger...(This never gets triggered. Where as I have another Plan with the same config which is working when a webhook from Jira is triggered.
2.b. A Bamboo plan with repository and trigger configured. The trigger is set as remote trigger. This triggers the build BUT:
2.b.1. I keep getting 400 message on the Bitbucket for Bamboo.
2.b.2. This actually triggers whenever there is a change in the repository. WHICH IS NOT DESIRED HERE.
Note: All application links are working and no issue there....
Any suggestion to get this thing moving will be appreciated.