【发布时间】:2020-02-21 00:58:33
【问题描述】:
我有一个 Cloud Build,在最后一个容器之后,我尝试上传 Artifacts。
我的 yaml 以:
结尾- name: eu.gcr.io/foo/bar
args: ["arg1"]
artifacts:
objects:
location: "gs://foo-bar/go/"
paths: ["/output/*"]
我的期望是类似于 CloudBuild 示例,它将获取最后一个 Container 的 /output 目录并将其所有文件上传到 foo-bar/go。保留通配符很重要,但由于我事先不知道哪些文件将在/output 中。
相反,我收到错误消息:
ERROR: could not upload /output/* to gs://foo-bar/go/; err = exit status 1
ERROR
CommandException: 1 file/object could not be transferred.
CommandException: No URLs matched: /output/*
/output/*: Uploading path....
Artifacts will be uploaded to gs://foo-bar using gsutil cp
有人知道如何进行这项工作吗?
【问题讨论】: