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:
Kindly suggest if anyone has worked on similar approach.
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.
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}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
using above webhook bamboo is getting triggered.But the values[echo ${myid}, ] while printing in bamboo is coming empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any way to trigger API post call with Ansible ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.