Octpous variable question

Hi Everyone

FYI I am on version 2.6
How can I get the installation path of the currently executing action is a post deploy script? I have tried this : Octopus.Action[name].Output.Package.InstallationDirectoryPath (with the current action name ) but it is not populated yet.

I imagine there is a way to do it as the log output of the ocotpus post deploy tasks that execute just before mine are displaying it (Apply web.release.config, Find and update variables)

Hi Paul,

Thanks for reaching out. You should be able to get it with Octopus.Action.Package.CustomInstallationDirectory without passing the step name between brackets. You need to pass the step name only when you want to fetch data of a step from another step. In your case, everything is happening in the same step so its not necesary to pass the name.

If that doesn’t work, please follow the below instructions to send us a deployment log. Also tell us the name of the step where you are trying to do this.

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

Thanks,
Dalmiro

Thanks, that property is exactly what i needed. I did look at that property - but its explanation doesn’t really represent what it is ?