It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you