Documentation

Support

Reference parameters

Learn how to reference pipeline and output parameters.
Read time 1 minuteLast updated 4 months ago

Unity Pipeline Automation has a syntax template to reference various types of parameters used within a pipeline. These parameters are accessible to your custom code either through command line arguments or directly through the script input.

Parameter Name

Syntax

Syntax Example

Supported Type

Description

Pipeline parameters
{{inputParameters.<parameterName>}}
{{inputParameters.message}}
Boolean, Float, Integer, Script (string), Text (string), Url (string), UUID (string)Reference pipeline parameters in scripts.
{{inputs.parameters}}
[{'name': 'message', 'default': 'Hello world', 'value': 'Hello world', 'description': 'A custom message to display in the log'}]
Boolean, Float, Integer, Script (string), Text (string), Url (string), UUID (string)Reference all pipeline parameters and their metadata. If there are no pipeline parameters, this evaluates to null.
Step input parametersN/AN/AN/AA pipeline cannot reference step input parameters.
Step output parameters
{{steps.<stepId>.outputParameters.<parameterName>}}
{{steps.create-asset-323da5cc.outputParameters.assetId}}
Boolean, Float, Integer, StringReference output parameters from previously executed steps.
Secrets parameter
{{secrets.<secretName>}}
{{secrets.token}}
StringReference pipeline secrets, which are sensitive information such as an API token. This evaluates to the string value of the secret stored in Unity’s Secret Manager service.
Warning
Don't log the values of secrets as this can create security risks.