Copy files action with YAML

YAML parameters for Copy files action

NameTypeDescription
action
Required
StringThe ID of the action.
type
Required
StringThe type of the action. Should be set to COPY_FILES.
source_pipeline_idIntegerThe 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_nameStringThe 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_nameStringThe 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_nameStringThe name of the project containing the pipeline to which files will be copied. Required if target_pipeline_name is set.
target_pipeline_nameStringThe 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_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.
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 action

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 December 19, 2022

Get Started

Sign up for free and deploy your project in less than 10 minutes.