Variable for deployment target name?

Is there a variable for the deployment target machine name or display name?
I have a redgate sql change automation package to deploy to 2 targets in the same environment, and I need to set a variable to the target name so each target has a separate working directory.

Hi @seanl,

Thanks for getting in touch! You might be after the system variable Octopus.Machine.Name which returns “the name that was used to register the machine in Octopus” (quoting the description in our system variables doc page). Alternatively, you can also scope variables to individual deployment targets to control which value evaluates for each target involved in a deployment.

Do either of these help address what you’re after? Let me know what you think or if you have any other questions.

Best regards,


This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.