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.