Help Center> CodeArts Build> User Guide> Configuring Build Actions> Code-based Build> Configuring a Task> Using YAML to Upload a Binary Package to a Repository
Updated on 2024-04-18 GMT+08:00

Using YAML to Upload a Binary Package to a Repository

For details about the restrictions on the uploaded software packages, see constraints of CodeArts Artifact.

1
2
3
4
5
6
7
8
version: 2.0 # The value must be 2.0.
steps:
  BUILD:
    - upload_artifact:
           inputs:
             path: "**/target/*.?ar"
             version: 2.1
             name: packageName	

Parameter

Type

Description

Mandatory

Default Value

path

string

Directory for storing the build result. A regular expression is supported. Example: **/target/*.?ar uploads all JAR and WAR packages built with Maven.

Yes

None

version

string

Not specified (recommended): Use the build number to name the directory for storing files uploaded to Release Repos.

Specified: Files in the directory with the same name may be overwritten.

No

None

name

string

Not specified (recommended): Use the original file name to name the file uploaded to Release Repos.

Specified: A file may be overwritten when another file with the same name is uploaded.

No

None