Binding Syntax

Last updated

Octopus supports a special binding syntax that can be used to refer to variables. It uses the form:


To reference a variable named Name from within the value of another variable.

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.

Binding One Variable to Another

You can reference variables from other variables:

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: