Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bamboo build trigger from JIRA

Divya Rohidas
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!
March 22, 2018

Hi Team,

The requirement is to trigger a Bamboo build with any update in actions in JIRA(Ex: Issue Update or comment update)

 We have followed the approach below:

  • Connected JIRA with Bamboo using a webhook.
  • We are trying various webhook URL’s but the trigger of Bamboo build is not successful.

 Kindly suggest if anyone has worked on similar approach.

 

4 answers

1 accepted

1 vote
Answer accepted
Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 1, 2018 edited

Hi Divya,

Just to close the loop after assisting you internally via support ticket,

this cURL command triggers a new build as explained in this page.

curl -X POST http://host:port/rest/api/latest/queue/PLAN-KEY?os_authType=basic --user username:password

You may have to disable "Enable XSRF protection" option in Overview -> Security settings for this to execute successfully.

To use it within a JIRA workflow, use it in this format for the webhook URL.

http://yourusername:yourpasswd@bamboo-host:8085/rest/api/latest/queue/PLAN-KEY?os_authType=basic

 Note: When configuring Webhook, the Exclude body checkbox MUST be checked.

Glad it helped.

Mahesh Pawar January 30, 2019

Hi @Jeyanthan Inbasekaran 

Thanks for info.

but my query is that , i want to pass some Jira fields like issue.key, project.key, project.id etc. to bamboo as well

can you help me out.

possibly like this

http://yourusername:yourpasswd@bamboo-host:8085/rest/api/latest/queue/PLAN-KEY?os_authType=basic&myid={$issue.key}&pid=${project.id}

  

Mahesh Pawar January 31, 2019

using above webhook bamboo is getting triggered.But the values[echo ${myid}, ] while printing in bamboo is coming empty.

0 votes
Haresh Perera August 23, 2019

Is there any way to trigger API post call with Ansible ...

0 votes
Malentaqui May 15, 2018

Is there any plugin to do that? or any other easier way?

0 votes
Divya Rohidas
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!
April 3, 2018

Hi Jey,

Iam able to trigger the build now.

Thanks a lot.

nivetha murugan
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!
April 29, 2019

Hi Divya,

I too facing the same issue as u got. Can u suggest me what URL u were using to get this work done.

I wanted to trigger bamboo build when the issue transition in JIRA. I have doubt in webhook URL in JIRA. 

Kindly give some idea.

Mahesh Pawar August 24, 2019 edited

In workflow tat transition add a webhook.

In that webhook call your Bamboo job using this URL:

http://yourusername:yourpasswd@bamboo-host:8085/rest/api/latest/queue/PLAN-KEY?os_authType=basic

This will trigger the bamboo the plan once transition is occured.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events