【发布时间】:2020-06-03 19:38:14
【问题描述】:
使用 JavaScript 库 NodeJS-CloudBuild,我们已经能够编写一个 Cloud Function,它可以在需要时触发新的 Cloud Build。
它已经稳定了几个月,但是从星期一开始,每当我们调用该函数时,我们都会收到一个不一致的错误: 错误:14 不可用:502:网关错误
代码示例非常简单,直接取自存储库,但带有我们的变量。
// Creates a client
const cb = new CloudBuildClient();
// Starts a build against the branch provided.
const [resp] = await cb.runBuildTrigger({
projectId,
triggerId,
source: {
projectId,
dir: './',
branchName,
},
});
console.info(`triggered build for ${triggerId}`);
我不确定最近发生了什么变化导致这些返回错误。从云构建仪表板执行“手动”触发器时,它也可以正常工作。
【问题讨论】:
-
关于这个案例github.com/googleapis/nodejs-cloudbuild/issues/119有一个github问题,我认为最好关注那里
-
我发布了这个问题,我认为它已升级给 GCloud Build 员工。
标签: javascript google-cloud-platform google-cloud-functions google-cloud-build