As you work with variables in Octopus, you can using Octopus's special binding syntax to refer to variables. It uses the form:
To reference a variable named
MyVariable from within the value of another variable. See output variables for a working example.
The binding syntax used by Octopus also supports many other constructs, such as loops, conditionals, and filters. You can learn more in the variable substitution syntax section.
Referencing Variables in Step Definitions
This binding syntax can also be used to dynamically change the values of deployment step settings. If variables are scoped, this makes it really easy to alter a deployment step settings based on the target environment.
Most text fields that support binding to variables will have a variable insert button:
For settings that support variables but aren't text (such as drop downs or checkboxes), a button is displayed to toggle custom expression modes:
Binding One Variable to Another
You can reference variables from other variables: