Mapping Task Output Properties to Variables
Learn how to capture task output properties in Digital.ai Release, map them to variables, and reuse those variables in subsequent tasks. This technique helps you pass values such as build numbers, artifact versions, or dynamic data across tasks within a release pipeline.
Prerequisites
- Digital.ai Release
- A release template with multiple tasks in a phase or pipeline
- Familiarity with task configuration and variable usage in Release
Step 1: Identify the Task Output Properties
Most tasks in Digital.ai Release (script tasks, plugin tasks, etc.) expose Output properties.
Syntax:
${TaskName/Output/PropertyName}
For example:
${Jira: GetVersions/Output/Versions}
${Jenkins: Build/Output/Build number}
You can confirm the exact output property names in the task configuration.
Here's the output properties for the Jenkins: Build task:

Step 2: Create Variables to Map the Output Properties
Mapping the output property to a variable improves readability and reusability.
- Select Variables from the sidebar (at release, phase, or template level).
- Click New variable.
- Set:
- Variable name:
jenkinsBuildNumber - Label:
Build number - Type Select the variable type, for example,
Text
- Variable name:
You can now use ${JenkinsBuildNumber} throughout the release pipeline. Clear the Required and Show on Create Release form check boxes if the variable is not user input. For more information, see Create Variables.

Step 3: Map the Output Properties to Variables
Mapping a task's output property to a variable lets you reuse those variables in subsequent tasks. For example, you can map a Jenkins: Build task's Build number output property to a variable and use the variable in a subsequent script task.
Here's an example mapping:

Step 4: Use the Variable in a Subsequent Task
Use the variables in a downstream task, for example, a Jython Script task. Here's an example.
print("The Jenkins Build Number is: " + str(releaseVariables['JenkinsBuildNumber']))
print("The Jenkins Build Job Status is: " + str(releaseVariables['jenkinsBuildStatus']))
print("The Jenkins Build Job URL is: " + str(releaseVariables['jenkinsBuildUrl']))