Versions Compared

Key

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

Runs user-specified groovy script. The plugin provides the ability for the user to define additional inputs that will be available to the scripts when executing. In addition, the plugin provides the ability for the user to define any number of outputs from the execution of the script that could be utilized in subsequent steps in the workflow.

All Workflow Execution variables and Inputs are available in Groovy script. Refer to the FlexDeploy Variables Guide for more details.

Environment/Instance Properties

...

Property Name

...

Required

...

Description

Project Properties

...

Property Name

...

Required

...

Description

Inputs

Input Name

Input Code

Required

Description

File Path

FDGROOVY_INP_FILE_PATH

Yes

The file path of the file to be executed.

Classpath

FDGROOVY_INP_CLASSPATH

No

Additional classpath(s) to use java libraries. Classpaths can be separated by semicolons or colons. Classpath entries may contain a wildcard (*).

Outputs

Output Name

Required

Description

Artifacts

This operation delegates the consumes/produces artifacts decisions to the workflow developer. Check Consumes Artifacts on the workflow step editor if this operation requires artifacts to be delivered prior to execution of the script. Check Produces Artifacts on the workflow step editor if this operation creates artifacts. The artifacts folder is available via the FD_ARTIFACTS_DIR variable.  

Endpoint Selection

This operation delegates endpoint selection to the workflow developer. The workflow editor will default the selection to "All", which selects all available endpoints associated to the environment instancetarget. Selecting a specific resource will result in selection of endpoints associated to the environment instance target which have that resource defined.

...

User defined outputs – an output must be defined in the workflow editor to be accessible. Within your script, an outputs map is available to add your outputs. Add an output value in outputs map and it will be returned to the workflow process. Any number of outputs can be defined, which makes this plugin very useful as it can be customized to perform actions that may not be supported out of box by FlexDeploy.

...

...

Example on how to set Output
Code Block
languagegroovy
 outputs.put("STATUS", STATUS_VARIABLE)

...