We want to automaticaly update a certain global variable in Bamboo. Is this possible by calling the Bamboo API? If not is it possible to do this in a plugin?
There is no REST API call for this as far as I know.
A plugin can probably do it. There's this class : http://docs.atlassian.com/atlassian-bamboo/latest/com/atlassian/bamboo/configuration/variable/ConfigureGlobalVariables.html but not sure how it's intended to be used. I would imagine you probably want to alter a global variable during a build (as part of a Task in a Job? If so there might be permissions issue since a Task is usable by any usable and altering global variables affects all users, so it might be limited to system admin permissions.
Hopefully one of the Atlassian folks can chime in with a better answer...
Update : The Atlassian folks have added this capability as of Bamboo 4.4, yet unreleased, "Allow for creation, deletion and modification of global variables via the Bamboo REST API" : https://jira.atlassian.com/browse/BAM-9344
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, do you know if the change will cover plan variables as well, or just global variables?
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.