Copy files from another pipeline with YAML

YAML parameters for Copy files from another pipeline

NameTypeDescription
action
Required
StringThe ID of the action.
trigger_time
Required
StringSpecifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
type
Required
StringThe type of the action. Should be set to COPY_FILES.
source_pipeline_id
Required
IntegerThe ID of the pipeline from which files will be copied. Not required if both source_project_name and source_pipeline_name are set instead.
source_project_name
Required
StringThe name of the project containing the pipeline from which files will be copied. Not required if source_pipeline_id is set instead.
source_pipeline_name
Required
StringThe name of the pipeline from which files will be copied. Not required if source_pipeline_id is set instead.
source_pathStringThe path in the source pipeline’s filesystem.
target_pathStringThe path in the current pipeline’s filesystem.
deployment_excludesString[]The paths and/or files that will be left out during the deployment.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.
trigger_conditionStringDefines when the build action should be run. Can be one of ALWAYS, ON_CHANGE, ON_CHANGE_AT_PATH, VAR_IS, VAR_IS_NOT or VAR_CONTAINS.
trigger_condition_pathsString[]Required when trigger_condition is set to ON_CHANGE_AT_PATH.
trigger_variable_keyStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the name of the desired variable.
trigger_variable_valueStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the value of the desired variable which will be compared with its current value.
disabledBooleanWhen set to true the action is disabled. By default it is set to false.
copy_hidden_filesBooleanWhen set to true the hidden files and folders (the ones with the name beginning with a ".") are copied.

YAML example for Copy files from another pipeline

actions:
- action: "Copy files from backend/dev"
type: "COPY_FILES"
copy_hidden_files: true
trigger_time: "ON_EVERY_EXECUTION"
source_project_name: "backend"
source_pipeline_name: "dev"
source_path: "/src"
target_path: "/www"
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/tmp/assets"
- "/tmp/styles"