Forums

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

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

Prasad Andrews
Contributor
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 Champion
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
TAGS
AUG Leaders

Atlassian Community Events