Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Executes Node JS script using the given inputs as parameters. You can specify which version of Node you want to execute the Node JS script with. Review the special considerations if you are using the automatic install feature.

Inputs

Input NameInput CodeRequiredDescription
Node Executable PathFDNODE_INP_NODE_EXE_PATHNoAn absolute path to a Node executable. If provided this will override the Node version input.
Install Node VersionFDNODE_INP_NODE_VERSIONNoIf selected FlexDeploy will install this version of node if it doesn't already exist and use this for plugin execution. Possible versions include: v14, v13, v12, v11, v10, v8, v6, v4. FlexDeploy will install the latest version of the major release specified.
Working DirectoryFDNODE_INP_WORKING_DIRECTORYNo

A relative path to a directory to execute the node commands in. This will be relative to the temp directory.

Artifacts to SaveFDNODE_INP_ARTIFACTS_TO_SAVENoA relative path to a directory to save as an artifact for build workflows. This path will be relative to temp directory. If not provided no artifact will be created. You can specify the entire temp directory by entering a dot (.) in the input.
Global NPM PackagesFDNODE_INP_GLOBAL_NPM_PACKAGESNoA comma separated list of NPM packages to be installed globally for the Node JS installation. 
Node CommandsFDNODE_INP_NODE_COMMANDSYesThe script of commands to be executed with the specified installation of Node JS.

Artifacts

This operation delegates the consume/produce artifacts decision to the workflow developer.

Endpoint Selection

This operation will select all available endpoints associated to the environment/instance.

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).  

  • No labels