Executes Node JS script using the given inputs as parameters. You can specify which version of Node install you want to execute the Node JS script with. Review the special considerations if you are using the automatic install feature. See installNodeJS to install node and global packages prior to running this operation.
Inputs
Input Name | Input Code | Required | Description |
---|---|---|---|
Node Executable Path |
| No | An absolute path to a Node executable. If |
not provided node must be on PATH. | ||
Working Directory |
| No |
The working directory where the node commands |
will be executed. This |
path can be absolute or relative |
. If relative the path will be relative to the temp directory. If not provided |
directory containing package.json will be used. | |||
Node Commands |
| Yes | The script of commands to be executed with the specified installation of Node JS. |
Artifacts to Save |
| No | This path will be relative to working directory. Use '.' notation to save the entire working directory. If no value is provided no artifacts will be saved. If produces artifacts is false, no artifacts will be created. |
Artifacts
This operation delegates the consume/produce artifacts decision to the workflow developer.
...
This operation will select all available endpoints associated to the environment/instancetarget.
Endpoint Execution
This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
Special Considerations
If Node Executable Path is given FlexDeploy expects that a version of node is installed at this location. An exception will be thrown otherwise. If the Node Executable path is provided this will override the Node version input and Node will not automatically be installed. If neither Node executable path nor Node install version input is provided it is expected that Node is on the PATH.
If FlexDeploy installs NodeJS it will be installed at our default location {FLEXDEPLOY_BASE_INSTALL_DIR}/installs/nodejs/{NODE_INSTALL_VERSION} (e.g /var/tmp/flexdeploy/installs/nodejs/v14).