google-cloud-build - Google Cloud Build Artifact 命令异常
问题描述
我的目标是使用 google cloud build 执行 python 脚本,然后将两个工件上传到注册表。当我使用这个 yaml 时,我可以在 /home/jovyan 中看到权限为 777 的两个输出文件,但是当我用工件路径指向它们时,我得到一个错误CommandException: No URLs match
timeout: 9001s #2.5 hour time-out
options:
machineType: 'UNSPECIFIED' # 'N1_HIGHCPU_8' # 'E2_HIGHCPU_32'
steps:
# spin up a docker container to do the scoreboard generation
- name: 'jupyter/scipy-notebook:notebook-6.4.4'
entrypoint: 'bash'
env:
- 'DOCKER=1'
args:
- -c
- |
pwd
whoami
ls -la /home/jovyan
ls -la
python3 scoreboard.py $(git diff --name-only HEAD HEAD~1)
chmod 777 /home/jovyan/data_out.json
chmod 777 /home/jovyan/scoreboard_out.md
ls -la /home/jovyan
# save output json file to cloud storage
artifacts:
objects:
location: gs://gops-results/
paths:
- /home/jovyan/data_out.json
- /home/jovyan/scoreboard_out.md
解决方案
推荐阅读
- algorithm - 虚拟机管理程序算法通常是如何布局的?
- plotly - 在 plotly/dash 中未选择下拉菜单时显示空白页
- python - 如何将多 fasta 文件头转换为单个 fasta 头?
- objective-c - 如何重构 XCTest 期望?
- reactjs - 在 react-router-dom 中找不到多个交换机的路由
- java - 时间戳在本地和可部署环境中的行为不同
- c# - 身份服务器 cookie 滑动到期仅在到期的后半段时间延长会话生命周期
- c# - 雪花网络连接器连接字符串无效
- react-native - expo react-navigation 5.x,Bottom Tab Navigator 包装在 Drawer Navigator 中时在 IOS 和 Android 上的工作方式不同
- python - 我们如何计算时间序列数据集的风险和回报?