Short question:
Is there a way of explicitly setting a variable to blank, instead of just leaving the field blank? So I still satisfy Octopus that the variable has been filled in (and not forgotten about) - but the value equates to blank. Something like:
#{Blank}
Longer question for full context:
I have defined a variable set. Let’s call this “VS1”.
Now I add a Variable Template to this set as follows:
- “InstanceSuffix”
I now set several Projects to include “VS1” as a Library Set. Now all Tenants connected to these Projects are instantly required to supply a value for the variable “InstanceSuffix”. This is exactly what I want - so far so good.
The problem comes where for some Tenants, I want this value to be empty. So some Tenants will need to specify something for that value, and some won’t. If I just leave the field blank though, Octopus quite rightly tells me that I haven’t filled in a value there.
I can get this working if I supply a default value for the variable as follows:
#{if DummyVariable}never_true#{/if}
But it doesn’t feel quite right to me. Ideally I’d like to be able to specify an explicit blank value. So I am still satisfying the fact that I have set a value for that variable - it’s just that the variable happens to be blank.
Is there a good way to do this?