【发布时间】:2019-02-07 12:11:07
【问题描述】:
我正在通过 Jenkins 管道推送 docker 映像,但出现以下错误:
错误:找不到匹配的凭据 gcr:["google-container-registry"]
我试过了:
gcr:["google-container-registry"]
gcr:[google-container-registry]
gcr:google-container-registry
google-container-registry
但它们都不起作用。
在我拥有的全局凭据中:
名称:google-container-registry
种类:来自私钥的 Google 服务帐户
描述:用于访问 Google API 和 服务。
【问题讨论】:
-
您是否拥有具有存储管理员权限的关联服务帐户密钥?
-
Jenkins 代理是否使用该凭据文件?
-
是的,我在 json 中有一个服务帐户密钥。我在 Jenking 中将其作为 google 服务帐户导入。
标签: google-cloud-platform jenkins-pipeline