Utils.setEnv

Sets the named environment variable to the specified value. If the variable already has a value, it is overwritten.

Note: Support for this API in JavaScript code will be deprecated in TruClient. Instead use the Evaluate C step available in the TruClient Steps box.

Utils.setEnv(name, value);

Arguments

Name Description
name(string) Name of the environment variable.
value(string) Value to set for the environment variable.

Return value

A promise that will be fulfilled with no arguments.

Example

Copy code
Utils.setEnv("PATH", "C:\\myapp\\");