Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 是否可以在源repo中使用cloudbuild.yaml通过API调用Google Cloud Build_Google Cloud Platform_Google Cloud Build - Fatal编程技术网

Google cloud platform 是否可以在源repo中使用cloudbuild.yaml通过API调用Google Cloud Build

Google cloud platform 是否可以在源repo中使用cloudbuild.yaml通过API调用Google Cloud Build,google-cloud-platform,google-cloud-build,Google Cloud Platform,Google Cloud Build,我有一个云构建触发器,它被设置为从远程存储库获取特定的分支,并从中使用cloudbuild.yaml文件来运行构建。我需要通过一个API调用以编程的方式执行同样的操作,我能看到这种情况发生的唯一方法是在这里使用API调用: 通过查看类型为Build的所需请求主体,似乎我可以提供源存储库(分支、提交或标记),但我不确定如何提供到cloudbuild.yaml的路径,在这种情况下,它确实需要与repo源代码一起使用。此外,似乎还需要一个stepsparam,它实际上必须是cloudbuild文件中的

我有一个云构建触发器,它被设置为从远程存储库获取特定的分支,并从中使用
cloudbuild.yaml
文件来运行构建。我需要通过一个API调用以编程的方式执行同样的操作,我能看到这种情况发生的唯一方法是在这里使用API调用:

通过查看类型为
Build
的所需请求主体,似乎我可以提供源存储库(分支、提交或标记),但我不确定如何提供到
cloudbuild.yaml
的路径,在这种情况下,它确实需要与repo源代码一起使用。此外,似乎还需要一个
steps
param,它实际上必须是cloudbuild文件中的步骤

是否有任何方法可以使用云触发器中设置的相同资源创建构建(路径为(
cloudbuild.yaml
),而不是本例中我无权访问的步骤)