Diese Seite ist in Ihrer lokalen Sprache noch nicht verfügbar. Wir arbeiten daran, weitere Sprachversionen hinzuzufügen. Vielen Dank für Ihre Unterstützung.

On this page

Show all

Using YAML to Upload Files to OBS

Updated on 2023-12-06 GMT+08:00

For details about the restrictions on using OBS, see Restrictions and Limitations.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
version: 2.0 # The value must be 2.0.
steps:
  BUILD:
    - upload_obs:
          inputs:
            artifact_path: "**/target/*.?ar"
            bucket_name: codecitest-obs
            obs_directory: test
          #   artifact_dest_name: ""
          #   upload_directory: true
          #   headers:
          #     x-frame-options: true
          #     test: test
          #     commit: ${commitId}

Parameter

Type

Description

Mandatory

Default Value

artifact_path

string

Path of the product to be uploaded. Regular expressions are supported.

No

bin/*

bucket_name

string

Specifies the name of the OBS bucket to which the file is uploaded.

Yes

None

obs_directory

string

Path of the OBS folder to be uploaded. By default, the file is uploaded to the root directory of the bucket.

No

./

artifact_dest_name

string

Name of the file uploaded to OBS. Set this parameter when the product needs to be renamed.

No

None

upload_directory

bool

Whether to upload a folder. If this parameter is set to false, all matched products are uploaded to obs_directory in tile mode.

No

false

headers

map

Uploaded header information

No

None

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback