Octostache ignores "##{" syntax

According to https://octopus.com/docs/deployment-process/variables/variable-substitution-syntax expressions like “##{NotToBeReplaced}” will not be replaced to variables by octostache.
But if you write simple script, like

Write-Host "1"
Write-Host "##{Octopus.Machine.Name}"
Write-Host "#{Octopus.Machine.Name}"
Write-Host "2"

The output will be


How can we tell to octostache to not replace variables?

Kind regards,
Alexander Yuzhanin

Hi Alexander,

I’ve tracked down the code change that changed this behavior (#4594 that was released in 2018.5.6), this was an unintended behavioral change and we’re looking into getting the old behavior back.

Thank you and kind regards,

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.