Get path of nuget package deployment

In each of the environments I am targeting there is a mix of C:\ and D:\ used for where applications are deployed to. I would prefer to re-use the same “Deploy NuGet package” step across any role. I would also prefer to avoid specifying a destination folder in the Deploy NuGet package step as it varies across machine.

The “Install applications to” setting of the machine’s tentacle is ideal, but I’m not sure how to reference this path. OctopusPackageDirectoryPath is null. I see some of my deployment packages in C:\Octopus\Applications<Environment>.

Help appreciated


You can get the path that Tentacle extracted the file to from:


From this you could then try to calculate where to put the file.