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:
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.
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:
This article explains how to trigger a build by adding this endpoint in a 'postCommitBuildTrigger.py'.
Let us know if that helped you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.