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_pipeline_id Integer The ID of the pipeline from which files will be copied. Not required if both source_project_name and source_pipeline_name are set instead. If not set, the source pipeline will be the current pipeline.
source_project_name String The name of the project containing the pipeline from which files will be copied. Required if source_pipeline_name is set. Not valid if source_pipeline_id is set.
source_pipeline_name String The name of the pipeline from which files will be copied. Required if source_project_name is set. Not valid if source_pipeline_id is set. If not set, the source pipeline will be the current pipeline.
target_project_name String The name of the project containing the pipeline to which files will be copied. Required if target_pipeline_name is set.
target_pipeline_name String The name of the pipeline to which files will be copied. Required if target_project_name is set. 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_name: "backend" source_pipeline_name: "dev" target_project_name: "backend" target_pipeline_name: "stage" source_path: "/src" target_path: "/www" deployment_excludes: - "/tmp" - "*.log" deployment_includes: - "/tmp/assets" - "/tmp/styles"

Last modified on Mar 4, 2025