#{Octopus.Machine.Name} as Variable value is not getting substituted

I am using the Octopus Machine Name variable as my website name. I am setting a Variable named “DomainName” and its value to #{Octopus.Machine.Name}. But its not getting substituted.

To add to it, this substitution is not happening in the “Send an email” step template

I have the following line in it:

Please click here to access your build.

Hi Mahesh,

Thanks for reaching out.

Could you follow the below steps and send us your deployment log? If possible, please only execute the Package deploy step to avoid the extra noise on the log.

1) Add these 2 variables to your project http://docs.octopusdeploy.com/display/OD/Debug+problems+with+Octopus+variables

2) Create a new release (so the new variables take effect) and deploy it. If possible skip as many steps as you can and only leave step we are troubleshooting in order to avoid the noise in the log.

3) Send us the raw log of that deployment http://docs.octopusdeploy.com/display/OD/Get+the+raw+output+from+a+task

Regards,
Dalmiro