Tom Peters on 07 Dec, 2017 01:22 AM
Thanks for getting in touch.
First, I would like to suggest you consider using Library Variable Sets, which will allow you to share variables between projects. If you do have a number of "shared" variables, this is the best way to ensure that there is a single source of truth for these variables.
If you still want to import/export your variable sets, then you will need to script this yourself using the Octopus Api. This will allow you to get your variables in a JSON format. Here is an example script that involves getting a variable set from the API, and also updating a variable. This could make a good starting point for your own script.
You can make this process even easier if you upgrade to v4, where we have introduced a way of exporting a variable set to JSON from within the UI. However, the import process will still need to be scripted.