Knowledge

Rsync [Password]

Parameters
Name Description
action Required String The ID of the action.
authentication_mode Required String The authentication mode for SSH. Should be set to PASS.
host Required String The host for the connection.
login Required String The username required to connect to the server.
port Required String The port for the connection.
type Required String The type of the action. Should be set to RSYNC.
trigger_time String Specifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
input_type String Defines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_path String The path in the repository.
password String The password required to connect to the server.
remote_path String The absolute or relative path on the remote server.
delete_extra_files Boolean An equivalent for rsync --delete option. See here.
archive Boolean An equivalent for rsync -a option. See here.
compress Boolean An equivalent for rsync -z option. See here.
recursive Boolean An equivalent for rsync -r option. See here.
dirs Boolean An equivalent for rsync -d option. See here.
deployment_excludes String[] The paths and/or files that will be left out during the deployment.
trigger_condition String Defines when the build action should be run. Can be one of ALWAYS, ON_CHANGE or ON_CHANGE_AT_PATH.
trigger_condition_paths String[] Required when trigger_condition is set to ON_CHANGE_AT_PATH.
Example
actions:
  - action: "Upload files to 123.45.67.89"
    type: "RSYNC"
    input_type: "SCM_REPOSITORY"
    trigger_time: "ON_EVERY_EXECUTION"
    local_path: "/src"
    remote_path: "/www"
    login: "api_tests_user"
    password: "${rsync_password}"
    host: "123.45.67.89"
    port: "22"
    authentication_mode: "PASS"
    archive: true
    compress: false
    recursive: true
    dirs: true
    delete_extra_files: true
    deployment_excludes:
    - "/tmp"
    - "*.log"
    trigger_condition: "ON_CHANGE_AT_PATH"
    trigger_condition_paths: 
    - "/src"
    - "/tests"

Get started now

14 days of unlimited trial. No credit card required.