I’m trying to retrieve the home directory of the tentacle (i.e. “C:\Octopus”) via Powershell. This is necessary because, during deployment, we want to create directories within this directory. Hard coding the path in the script is not an option since it can differ between machines, neither is passing it as a variable.
I’ve checked the official documentation for system variables on: https://octopus.com/docs/deployment-process/variables/system-variables
I cannot find what I’m looking for however.
I’ve tried using the system variable
Octopus.Tentacle.Agent.ApplicationDirectoryPath because this returns the path in which Octopus installs the packages (i.e. "C:\Octopus\Applications).
I could get the necessary substring by truncating the value of this variable, but this seems cumbersome.
Is there a system variable I’m somehow missing, or is this simply not possible?