been using Octopus for quite a few years now, and recently run into an issue with variable substitution in JSON files. No matter what I try, I end up with an empty string in my JSON file, or “null”, instead of a proper null value.
e.g. My JSON file:
Some Tenants need to have a timestamp string in here, such as “0.00:20:00.0000”, however others should have a null value.
I’ve tried the following:
- Leaving the variable blank - results in “authMaxAge”: “”
- Entering the value null in the variable - results in “authMaxAge”: “null”
Any idea what I’m doing wrong? I’m on version 3.16.1, and planning to upgrade at the end of this sprint. I’ve seen this topic: https://help.octopusdeploy.com/discussions/problems/47779-json-configuration-variables-feature-not-allowing-empty-strings-on-version-34 which sounds like what I’m after, but it doesn’t seem to work for me.
Thanks very much,