Variables

Last updated 2018-02-07T09:42:31.7696937+00:00

As you promote your application through test, UAT, staging and production, there are going to be differences in database connection strings, application settings, web service URLs, and many other parameters.

To make it easy to support different environments without hard-coding these configuration values, you can define variables related to your project. These variables are used during your application deployment. For example, variables you define will be automatically substituted into XML configuration files, and made available to your PowerShell scripts. This allows you to create applications and deployment scripts that are agnostic of the target environment.

Variables are essentially name/value pairs with optional scope rules applied. You can edit the variables using the Variables tab within a project.

Variables are an important and useful concept in Octopus, so this section describes different ways in which variables can be used.