Publish output variables to chain steps

If a chain step produces measurements, you can publish them as output variables to other steps down the chain. This enables you to pass information to later steps and child chains.

You can define your own measurements and pass them as output variables. For details on how to add custom measurements, see Define measurements in chain steps.

Guidelines for specifying output variables:

  • Use only these characters in variable names: a-z, A-Z, 0-9, and underscore (_).

  • Enter one variable-name=variable-value pair per line.

  • Measurement names are not case-sensitive. For example, newvar=${{Finding Count}} matches newvar=${{finding count}}.

  • An output variable value can contain the values of other variables or step measurements. Use the following syntax:

    ${{variable-name}} or ${{measurement-name}}

  • You can combine variables and measurements, for example:

    newvar=Step in ${{chainnum}} has ${{finding count}} findings

  • You can use escape sequences in variable values: newline \n, tab \t, return \r, and backslash \\.

  • Variable values defined in later steps override those in earlier steps. For example, if the same output variable is defined in steps 1 and 2, then step 3 will use the value from step 2.

To publish output variables:

  1. In PulseUno, navigate to Spaces, select a space and then a product or Git repository.

  2. In the sidebar, select Chains.

  3. Open a chain from the chain list and click Edit.

  4. In the Steps tab, click the step from which you want to publish output variables.

  5. In the step's parameters, expand the Output Variables section and enter the output variables you want to publish, one variable-name=variable-value pair per line.

  6. Click Save.

Only output variables are replaced. Your PulseUno agent makes a record of step variables in the step log, indicating what output variables have been overwritten.

To view the step log, open the chain run's Log tab. For details, see View chain run details.

Back to top

See also: