Using step template parameter in *Deploy.ps1 script

I’ve created my own Step Template based on Octopus.TentaclePackage with parameter called AppRootPath. I would like to use this variable in my Deploy.ps1 and PostDeploy.ps1 scripts, but it seems it does not work as script params documented here:


# use $AppRoothPath various way, e.g. Remove-Item -Recurse $AppRootPath :)

How do I reach AppRootPath step parameter from deployment scripts which is deployed with nuget package? Is that actually possible?

Oh, just found out it’s accessible via $OctopusParameters["AppRootPath"].


Thanks for the update, I’m glad to see that you have resolved the issue! Please let us know if there is anything else that we can assist with.