Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Remote trigger and webhook

Matimba Mashaba
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 10, 2024

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.

1 answer

1 accepted

3 votes
Answer accepted
Shashank Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 10, 2024

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

https://confluence.atlassian.com/bamkb/how-to-trigger-bamboo-builds-with-github-webhook-1097179080.html

https://confluence.atlassian.com/bamboo/triggering-a-bamboo-build-from-bitbucket-cloud-using-webhooks-873949130.html

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**

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events