Variable Usage Examples
This topic provides examples of how to create and use release variables in Digital.ai Release. Variables let you define dynamic values that can be reused across tasks, templates, and releases. This makes your release process more flexible, consistent, and easier to maintain.
Overview of Variable Types
Digital.ai Release supports only:
- Release variables: Scoped to a specific release or template.
For more information, see Variables in Release.
Release Variables
Release variables offer the most flexibility. Use them for values that change between releases (e.g., version numbers, build identifiers, or release notes).
Example: Creating a Release Variable
To create a release variable:
- Open the target release or template.
- Under the CONFIGURATION tab, select Variables.
- Click New variable.
- Enter the Variable name, such as
releaseVersion
, and Value, such as25.3.0
. - Click Create.
You can also define release variables inline while editing a task by using ${releaseVersion}
.
Using a Release Variable
This variable is scoped to a single release or template and is used with ${releaseVersion}
.
Example: A task title:
Current Version: ${releaseVersion}
Release replaces the placeholder with the actual value during execution.
For more details, see Release Variables.