Forums

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

unable to trigger bamboo plan from jira issues

Lakshmi narayana Chilakala
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 26, 2018

Bamboo build trigger from Jira

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.
  • we are using Jira version (v7.4.2#74004-sha1:586975d)  Bamboo version  6.2.3

we are facing below error in log file:

22018-03-26 11:52:29,765 httpclient-callbacks:thread-32 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Server error - 500 when posting to web hook at 'http://bamboo-host:8085/rest/api/latest/queue/JTST-JTST?&os_authType=basic&os_username=admin&os_password=admin&user_id=jchang&user_key=jchang'

 Kindly suggest if anyone has worked on similar approach.

 

1 answer

0 votes
Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 8, 2018

Hi Lakshmi,

 I was able to trigger a build using the below curl command as explained in this page.


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

You might also use the action call (/api/rest/updateAndBuild.action?buildKey=) using the endpoint updateAndBuild.action to trigger a build. This checks whether there are changes in the repository associated with the planKey provided as parameter. Upon doing, Bamboo will:

  • trigger a build against the buildKey provided
  • will check if there are any other changes in the repository, including branches. If so, will trigger a build against branches as well.

This article explains how to trigger a build by adding this endpoint in a 'postCommitBuildTrigger.py'.

Let us know if that helped you.

Suggest an answer

Log in or Sign up to answer