【发布时间】:2017-12-15 15:22:17
【问题描述】:
我在 Github 上有两个私有存储库,A 和 B。它们都是 Golang 项目。项目 A 依赖于存储库 B。我已将两个存储库链接到 Google 源代码并获得许可。
Cloudbuild.yaml
- name: 'gcr.io/cloud-builders/git'
args: ['clone', 'https://source.developers.google.com/p/$PROJECT_ID/r/B']
来自容器构建器的日志
Starting Step #0
Step #0: Already have image (with digest): gcr.io/cloud-builders/git
Step #0: Cloning into 'B'...
Finished Step #0
...
Step #1: [0;33m[WARN] [mUnable to checkout github.com/user/B
Step #1: [0;31m[ERROR] [mUpdate failed for github.com/user/B: Unable to get repository: Cloning into '/builder/home/.glide/cache/src/B'...
Step #1: fatal: could not read Username for 'https://github.com': No such device or address
Step #1: : exit status 128
有没有人可以使用容器构建器和谷歌自己的源代码库工作?我不想使用“云密钥管理服务”来解决这个问题。
已经试过了:https://github.com/GoogleCloudPlatform/cloud-builders/issues/44#issuecomment-325144047
【问题讨论】: