Copy files action with YAML

YAML parameters for Copy files action

Name Type Description
action Required String The ID of the action.
type Required String The type of the action. Should be set to COPY_FILES.
source_project String The name of the project containing the pipeline from which files will be copied. Required if source_pipeline is set.
source_pipeline String The identifier of the pipeline from which files will be copied. If not set, the source pipeline will be the current pipeline.
target_project String The name of the project containing the pipeline to which files will be copied. Required if target_pipeline is set.
target_pipeline String The identifier of the pipeline to which files will be copied. If not set, the target pipeline will be the current pipeline.
source_path String The path in the source pipeline’s filesystem.
target_path String The path in the current pipeline’s filesystem.
deployment_excludes String[] The paths and/or files that will be left out during the deployment.
deployment_includes String[] The exceptions from the ignore patterns set in deployment_excludes.
copy_hidden_files Boolean When set to true the hidden files and folders (the ones with the name beginning with a ".") are copied.

YAML example for Copy files action

yaml
actions: - action: "Copy files from backend/dev" type: "COPY_FILES" copy_hidden_files: true trigger_time: "ON_EVERY_EXECUTION" source_project: "backend" source_pipeline: "dev" target_project: "backend" target_pipeline: "stage" source_path: "/src" target_path: "/www" deployment_excludes: - "/tmp" - "*.log" deployment_includes: - "/tmp/assets" - "/tmp/styles"

Last modified on Jul 31, 2025