ruby 使用堆栈驱动程序凭据无法在 circleCI 级别进行身份验证

ruby with stack-driver credentials fail to authenticate at the circleCI level

我正在尝试为我的 ruby 项目使用 GCP 堆栈驱动程序来监控日志和调试。问题是当我将我的凭据文件路径复制到我的 circle ci GOOGLE-APPLICATIION-CREDENTIAL 环境变量时,我收到无法在 circleCI 进行身份验证的错误等级 这是我的错误 Note: Google::Cloud::Logging is disabled because it failed to authorize with the service. (Unable to read the credential file specified by GOOGLE_APPLICATION_CREDENTIALS

Note: Google::Cloud::Debugger is disabled because it failed to authorize with the service. (Unable to read the credential file specified by GOOGLE_APPLICATION_CREDENTIALS: file

我找到了我的解决方案,您必须将凭据文件放在构建之上,如下所示: 回声 ${GOOGLE_APPLICATION_CREDENTIALS} > ${HOME}/account.json GOOGLE_APPLICATION_CREDENTIALS="${HOME}/account.json"

现在的问题是调试器显示此文本

no source version information provided