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 9 Next »

Copies file(s) and folder(s) from given source folder recursively to the given target folder. The subfolders are preserved.

The plugin provides the ability to transfer files using filters. The filters allow the user to enter multiple wildcard selection filters to allow very flexible lists of files to copy.

In addition, the plugin provides the option to clean up the target before copying the files.

Environment/Instance Properties

Property Name

Property CodeRequired

Description





Project Properties

Property Name

Property Code

Required

Description





Inputs

Input Name

Input Code

Required

Description

File Filter

FDFILE_INP_FILE_FILTER

No

Wildcard compatible expression to select file(s). You can enter multiple filter expressions separated by ##. Leave empty to select all files. The ## performs an OR expression. Will filter Files or Directory names but not the path. (e.g. for "/this/is/a/test/path" if you use "path" it will filter it, if you use "/this/is/a/test/path" it will not)

The FDFILE_INP_FILE_FILTER replaces ## with an OR operation with the input given.

Here are some examples and expected behaviors:

Filter Text

Result

.properties##.xml##.conf##.temp

Copies any .properties, .xml, .conf, and .temp files or folders.

*.war

Copy all .war files

*.war##important.xml##readme.md

Copy all .war files, important.xml, and readme.md




File Exclude Filter

FDFILE_INP_FILE_FILTER_EXCLUDED

No

Wildcard compatible expression to exclude file(s) OR folders. You can enter multiple filter expressions separated by ##. Leave empty to select all files. The ## performs an OR expression. Will filter Files or Directory names but not the path. (e.g. for "/this/is/a/test/path" if you use "path" it will filter it, if you use "/this/is/a/test/path" it will not)

The FDFILE_INP_FILE_FILTER replaces ## with an OR operation with the input given.

Here are some examples and expected behaviors:

Filter Text

Result

svn##.git##*.temp

Ignore any .temp files (and any files named svn or .git)
AND any content in a folder named svn, .git, or .temp

*.war

Ignore all .war files

*.tmp##boring.xml##readme.md

Ignore all .tmp files, boring.xml, and readme.md

Source Path

FDFILE_INP_SOURCE_PATH

Yes

The source directory to copy file(s) from. The FD_TEMP_DIR and FD_ARTIFACTS_DIR variables work great in this field.

Target Path

FDFILE_INP_TARGET_PATH

Yes

The target directory where file(s) are to be transferred. The FD_TEMP_DIR and FD_ARTIFACTS_DIR variables work great in this field.

Clean Directory

FDFILE_INP_CLEAN_DIRECTORY

No

Flag to indicate if the target path should be cleaned before copy.

Outputs

Output Name

Required

Description




Artifacts

This operation delegates the consumes/produces artifacts decision 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 instance. Selecting a specific resource will result in selection of endpoints associated to the environment instance which have that resource defined.

Endpoint Execution

This operation delegates endpoint execution to the workflow developer. The workflow editor will default to "Any", which will execute on any one of the selected endpoints, which will be randomly picked from selected endpoints or a specific endpoint where previous step may have executed. Changing this value to "All" to will result in execution on all selected endpoints.

  • No labels