You need to enable JavaScript to run this app.
文档中心
持续交付

持续交付

复制全文
下载 pdf
步骤列表
制品管理
复制全文
下载 pdf
制品管理
制品管理步骤用于在流水线中上传、下载和管理非容器镜像的构建产物,如二进制文件、压缩包、配置文件等。​
TOS 上传​
将指定的文件或目录上传到对象存储(TOS)的指定存储桶(Bucket)中。​
  • 组件:upload-tos@1.0.0​
  • 参数:​
  • ​
    参数​
    数据类型​
    是否必填​
    默认值​
    说明​
    bucketRegion​
    string​
    是​
    -​
    TOS Bucket 所在的地域。​
    bucketName​
    string​
    是​
    -​
    目标 Bucket 的名称。​
    sourcePath​
    string​
    是​
    -​
    要上传的源文件或目录的路径。​
    tosPath​
    string​
    是​
    /​
    上传到 Bucket 内的目标路径。​
    containsParentDir​
    boolean​
    否​
    false​
    上传目录时,是否在目标路径下保留源目录。​
    • true:保留源目录。​
    • false:默认值,不保留源目录。​
    ​
  • 示例:​
  • ​
    tasks:​
    - task: task-tos-upload​
    displayName: TOS Upload​
    steps:​
    - step: step-tos-upload​
    component: upload-tos@1.0.0​
    inputs:​
    bucketRegion: cn-beijing​
    bucketName: my-release-artifacts​
    sourcePath: ./dist/app.zip​
    tosPath: /releases/v1.0/​
    ​
TOS 下载​
从指定的 TOS Bucket 下载文件或目录到流水线的工作空间。​
  • 组件:download-tos@1.0.0​
  • 参数:​
  • ​
    参数​
    数据类型​
    是否必填​
    默认值​
    说明​
    bucketRegion​
    string​
    是​
    -​
    TOS Bucket 所在的地域。​
    bucketName​
    string​
    是​
    -​
    目标 Bucket 的名称。​
    path​
    string​
    是​
    -​
    要下载的 Bucket 内文件或目录的路径。​
    targetPath​
    string​
    是​
    -​
    下载到本地工作空间的目标路径。​
    ​
  • 示例:​
  • ​
    tasks:​
    - task: task-tos-download​
    displayName: TOS Download​
    steps:​
    - step: step-tos-download​
    component: download-tos@1.0.0​
    inputs:​
    bucketRegion: cn-beijing​
    bucketName: my-build-dependencies​
    path: common-libs.zip​
    targetPath: /workspace/libs​
    ​
​
最近更新时间:2026.05.11 11:33:36
这个页面对您有帮助吗?
有用
有用
无用
无用