Capture to SCP/SFTP

Use the Capture to SCP/SFTP plugin to capture built artifacts to a workspace using secure copy (SCP) or to a remote network server using Secure File Transfer Protocol (SFTP).

Configuration

When you add the Capture to SCP/SFTP plugin step to a chain, specify the following configuration details:

Field Description
Title Enter a name for the plugin step.
SCP/SFTP Select a method for capturing artifacts.
Host

Enter the hostname of the SCP/SFTP server where the artifacts will be captured, for example:

localhost

dev7_unit_test

Port Enter the port number of the SCP/SFTP server.
Username Enter the username of the user who has access and write permissions to the SCP/SFTP server.
Password Enter the password for the user who has access and write permissions to the SCP/SFTP server.
Source directory (Optional) Enter the relative path to the source directory where the artifacts are located.
Target directory (Optional) Enter the relative path to the destination directory where the artifacts will be published.
Include patterns (Optional) To publish only specific files, enter one or more Ant patterns, one pattern per line. To publish all files, leave this field empty.
Exclude patterns (Optional) To exclude specific files from being published, enter one or more Ant patterns, one pattern per line. To publish all files, leave this field empty.
Flatten files (Optional) Select this option to publish all the files into one flat directory.
When no files are captured, mark the step as (Optional) From the list, select the state to assign to the step if no files are captured: Success, Failed, or Unstable.

Back to top

See also: