My config file looks like this prior to deployment:
<appSettings>
<add key=“RedisKeyPrefix” value="" />
…
</appSettings>
The resulting config file looks like this after deployment:
<appSettings>
<add key=“RedisKeyPrefix” value="#{Octopus.Release.Created | Format yyyy-MM-dd-HH-mm-ss}" />
…
</appSettings>
How do I get Octopus to take the release’s creation date, format it and put it into the config setting?
If changing the variable syntax in your config doesnt work, can you please tell me what version of Octopus Server and Tentacle you’re running? I did the repro on 2020.2.16 and 5.0.13 respectively.
It’s very possible something was fixed between your version and the one I reproduced it on. Is it the same results as before when you change it to #{RedisKeyPrefix}?