You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have a project variable to store an AWS access key. After rotate access key in task, I want to update the project variable with the new access key, is it possible? The variable is used in deployment projects to access to AWS resources.
Plan execution can't update Project variable
Thanks the answer.
Is there any way to update Project variables in AWS Lambda?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There's no REST API for project variable update available yet, but you can craft curl command to update it with multiform HTTP POST request
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Alexey Chystoprudov
I tried to find about the multiform HTTP POST request but I counts't do it.
Could you give the information of multiform HTTP POST request to update?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try something like this
curl -u user:password 'http://BAMBOO_URL/project/admin/ajax/updateProjectVariable.action?projectKey=PRJKEY' \
-H 'x-atlassian-token: no-check' \
-H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \
--data-raw ‘variableId=VARIABLE_ID&variableKey=myvar&variableValue=test2&bamboo.successReturnMode=json&confirm=true'
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.
Unfortunately PAT doesn't work for non REST calls.
By the way this feature is available by REST API since 8.1.1, see https://docs.atlassian.com/atlassian-bamboo/REST/8.1.1/#d2e288
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.