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

To configure the Capture to SCP/SFTP step:

  1. Add the Capture to SCP/SFTP step to a chain, as described in Create chains.

  2. Enter the plugin configuration details:

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

    Enter the hostname of the SCP/SFTP server where to capture the artifacts, 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 in which the artifacts are 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: