trigger a bamboo build plan from JIRA on an issue transition (without password)

Prasad Andrews March 25, 2019

We are working on a requirement to trigger a bamboo build plan from JIRA on an issue transition. We like to use CURL function via a scriptrunner plugin for this but we don't want to mention the bamboo user password in the script in JIRA workflow.

example -

curl -X POST -u admin:password http://bamboo-host:8085/rest/api/latest/queue/PLAN-KEY?os_authType=basic&<JIRA field name>=<value>

Is there any way via applinks to authenticate the request if the user who does the transition in JIRA and if the same user has 'Run' access to the Bamboo build plan, JIRA and Bamboo are authenticated to trigger the build?

OR

is any other way to hide the password in curl method?

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 23, 2019

Hi! 

You can use tokens

https://confluence.atlassian.com/bamboo/personal-access-tokens-976779873.html

Also, maybe you need update Bamboo :)

Suggest an answer

Log in or Sign up to answer