Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Executes a Grunt file using the given inputs as parameters. You can specify which gruntfile, tasks and targets, additional parameters and which version of Node you want to execute the grunt file with. Review the special considerations if you are using the automatic install feature. See installNodeJS to install node prior to execution of this operation.

Inputs

Input NameInput CodeRequiredDescription
Node Executable PathFDGRUNT_INP_NODE_EXE_PATHNoAn absolute path to a Node executable(grunt and grunt-cli package must be installed). If not provided node must be on PATH.
Working DirectoryFDGRUNT_INP_WORKING_DIRECTORYNo

The working directory where the Grunt commands will be executed. This path can be relative or absolute. If relative the path will be relative to the temp directory. If not provided directory containing package.json will be used.

Grunt FileFDGRUNT_INP_GRUNT_FILENoAbsolute or A relative path to Grunt file. Relative The path will be looked in temp and artifact relative to working directory. If not provided this value will be defaulted to gruntfile.js.
TasksFDGRUNT_INP_TASKSNoComma seperated separated list of grunt tasks to run. If not provided the default task will run. You can specify targets with ' Task:Target'.
Additional ParametersFDGRUNT_INP_ADDITIONAL_PARAMETERSNo

Additional arguments to pass to Grunt. For example, --force, --verbose, or --stack. The Grunt file parameter (--gruntfile) is not required as it is handled

by

with Grunt File input.

Node Executable PathFDGRUNT_INP_NODE_EXE_PATHNoAn absolute path to a Node executable. If provided this will override the Node version input.
Install Node VersionFDGRUNT_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.
Grunt CLI VersionFDGRUNT_INP_GRUNT_CLI_VERSIONNoIf selected FlexDeploy will install this version of Grunt if it doesn't already exist and use this for plugin execution. Possible versions include: v1.3.2, v1.2.0, v1.1.0, v1.0.1, v0.1.13.
Grunt VersionFDGRUNT_INP_GRUNT_VERSIONNoIf selected FlexDeploy will install this version of Grunt if it doesn't already exist and use this for plugin execution. Possible versions include: v1.3.0, v1.2.1, v1.1.0, v1.0.4, v0.4.5
Working DirectoryFDGRUNT_INP_WORKING_DIRECTORYNo

A relative path to a directory containing package.json. This path will be relative to temp directory. If not provided temp directory will be used.

This path is where grunt will be installed if applicable and executed. This input will be appended to the grunt command as it is entered.

Artifacts to SaveFDGRUNT_INP_ARTIFACTS_TO_SAVENo

A relative path to a directory to save as an artifact

for build workflows

. This path will be relative to

temp

the working directory. If not provided no artifacts will be saved. Use '.' notation to save the entire

temp

working directory

will be saved as artifacts

.

Artifacts

This operation produces artifacts that will be stored in the artifacts repository.

...

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