Hi, I have a plan that I have enable a remote trigger but I get an error when i send a POST API request (Method Not Allowed). i do get results when i use GET method. Please note I have left the IP Address edit box blank as I am querying from Saas environment.
Regarding webhook, How can I create a webhook that trigger a build. I saw the build webhook template but I did not understand how to go about it.
Hello Matimba,
Welcome to Atlassian community.
Regarding webhook, How can I create a webhook that trigger a build. I saw the build webhook template but I did not understand how to go about it.
I believe you are referring to https://confluence.atlassian.com/bamboo/using-webhooks-1018270680.html where the Build webhook is used to send information about the current build to third party apps. This will help you display Bamboo build information in for example in Teams where you can get to know if a Build passes or Fails.
To trigger the Build best way would be to use Bamboo REST API, you can refer https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-api-latest-queue-projectkey-buildkey-post for more details, the REST API would looks something like below
curl --request POST \
--url 'http://{baseurl}/rest/api/latest/queue/{projectKey}-{buildKey}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{ "fakeParam": "<string>" }'
If you looking to use Webhook to Trigger builds from Github or BB Cloud you can refer the below documentation
Regarding your query related to Remote Trigger, can you explain the whole setup again, it's little confusing to understand currently.
Regards,
Shashank Kumar
**please don't forget to Accept the answer if your query was answered**
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.