Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-9344

Allow for creation, deletion and modification of global variables via the Bamboo REST API

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      I created a forum posting that discussed this: http://forums.atlassian.com/message.jspa?messageID=257356762.

      Our build environment consists of six different SVN repositories that branch at different times in our release cycle. We have multiple plans that build from the same repository so we define our SVN URLs as global variables. As we branch and create new plans, it would be ideal if the global SVN variables could be updated/defined via the REST API. This is currently a manual task.

            [BAM-9344] Allow for creation, deletion and modification of global variables via the Bamboo REST API

            davidholsgrove unfortunately there's no endpoint to manage plan variables yet.

            Alexey Chystoprudov added a comment - davidholsgrove unfortunately there's no endpoint to manage plan variables yet.

            Hi @achystoprudov, I opened https://jira.atlassian.com/browse/BAM-18266 to ask the same question as this has been marked resolved.

            Is there a darkfeature endpoint to GET / POST / DELETE Plan Variables?

            David Holsgrove added a comment - Hi @achystoprudov, I opened https://jira.atlassian.com/browse/BAM-18266  to ask the same question as this has been marked resolved. Is there a darkfeature endpoint to GET / POST / DELETE Plan Variables?

            Tedd Terry added a comment -

            Any chance that a similar feature could be added for Plan variables? We often end up having to copy variables from one plan to another when setting up new plans, and this task is very labor intensive. I know we can get plan variables through the REST API but I really need to POST them as well.

            Tedd Terry added a comment - Any chance that a similar feature could be added for Plan variables? We often end up having to copy variables from one plan to another when setting up new plans, and this task is very labor intensive. I know we can get plan variables through the REST API but I really need to POST them as well.

            vallepu.vineel1654812644, you still need to enable it via dark feature flag from this comment.

            Alexey Chystoprudov added a comment - vallepu.vineel1654812644 , you still need to enable it via dark feature flag from this comment.

            @achystoprudov is this api publicly available on 5.12?

            vineel kumar added a comment - @achystoprudov is this api publicly available on 5.12?

            Tom Adamo added a comment -

            I would also be interested in an unofficial list of APIs...I'm wondering if there will be one available to update a deployment environment variable.

            Tom Adamo added a comment - I would also be interested in an unofficial list of APIs...I'm wondering if there will be one available to update a deployment environment variable.

            Any chance for a unofficial list of API endpoints?

            CTO Build, Run, and Architecture added a comment - Any chance for a unofficial list of API endpoints?

            Alexey Chystoprudov added a comment - - edited

            Right now this feature is hidden behind dark feature flag. It was actually solved in 5.9 as experimental API. We're planning to make it public in future releases

            You can enable it by adding -Datlassian.darkfeature.bamboo.experimental.rest.admin.enabled=true system property. Then list of globalVariables will be available at http://localhost:8085/bamboo/rest/admin/latest/globalVariables
            Use POST method to create global variable and DELETE to remove it

            Alexey Chystoprudov added a comment - - edited Right now this feature is hidden behind dark feature flag. It was actually solved in 5.9 as experimental API. We're planning to make it public in future releases You can enable it by adding -Datlassian.darkfeature.bamboo.experimental.rest.admin.enabled=true system property. Then list of globalVariables will be available at http://localhost:8085/bamboo/rest/admin/latest/globalVariables Use POST method to create global variable and DELETE to remove it

            shootdaj added a comment -

            What is the endpoint and URL to use this feature? How can I update a global variable using a REST request?

            shootdaj added a comment - What is the endpoint and URL to use this feature? How can I update a global variable using a REST request?

            What is the ressource for this api call and how to use it? There is no entry in the rest api documentation.

            Deleted Account (Inactive) added a comment - What is the ressource for this api call and how to use it? There is no entry in the rest api documentation.

              Unassigned Unassigned
              e44c097ec4eb Jeff Schnitter
              Votes:
              1 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m