Artifact Upload

Artifact Upload is a builtin action, you can’t modify it.

This action can be used to upload artifacts in CDS. This is the recommended way to share files between pipelines or stages.

Parameters

Requirements

No Requirement

YAML example

Example of a pipeline using Artifact Upload action:

version: v1.0
name: Pipeline1
stages:
- Stage1
jobs:
- job: Job1
  stage: Stage1
  steps:
  - artifactUpload:
      path: '{{.cds.workspace}}/myFile'
      tag: '{{.cds.version}}'

Example

img

img

img

Worker Upload Command

You can upload an artifact with the built-in action - or use the worker command.

Example of a step script using worker upload command

img