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.

Include Page
Generic Package-based operations hint
Generic Package-based operations hint

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.

...

Property Name

Property Code

Required

Description

Stop on Deployment Error

FDGROOVY_STOP_ON_DEPLOYMENT_ERROR

No

Stop deploying package files if any error occurs. If unchecked all files will be deployed even if one or more files fails. This is for package operations only. True by default.

Inputs

Input Name

Input Code

Required

Description

Code Snippet

FDGROOVY_INP_CODE_SNIPPET

Yes

The groovy code to be executed.
Example:

Code Block
languagegroovy
def sampleDir = new File('DirectoryName')
def sampleDirSize = sampleDir.directorySize()
println sampleDirSize
outputs.put("STATUS", sampleDirSize)

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

Restrict Target Groups

FDGROOVY_INP_RESTRICT_ENVIRONMENT

No

Provide comma-separated target group codes to restrict available target properties. If no value is provided, all target properties are available in environment.

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.  

...