简体   繁体   English

gcloud 构建提交中缺少未知值

[英]Missing unknown value in gcloud builds submit

I'm trying to run a cloud build on my GCP project:我正在尝试在我的 GCP 项目上运行云构建:

gcloud builds submit src --tag=eu.gcr.io/<PROJECT>/<APP_NAME>:latest --gcs-source-staging-dir=<BUILD_BUCKET>/runstage --gcs-log-dir=<BUILD_BUCKET>/logs --project=<PROJECT>

This worked fine yesterday but now I get:这昨天工作得很好,但现在我得到:

ERROR: (gcloud.builds.submit) value for field [bucket] in collection [storage.objects] is required but was not provided

Am I missing something here?我在这里错过了什么吗?

I have reproduced the issue and I also got the same error.我已经重现了这个问题,我也遇到了同样的错误。 I resolved it by using the following command:我使用以下命令解决了它:

gcloud builds submit --gcs-source-staging-dir="gs://<BUILD_BUCKET>/runstage" --gcs-log-dir="gs://<BUILD_BUCKET>/logs" --tag=eu.gcr.io/<PROJECT>/<APP_NAME>:latest  --project=<PROJECT> 

Make sure to call Dockerfile explicitly in your cloudbuild.yaml file.确保在您的 cloudbuild.yaml 文件中显式调用 Dockerfile。 For example :例如 :

steps:
- name: 'gcr.io/cloud-builders/docker'
  args: [ 'build', '-t', 'eu.gcr.io/<PROJECT>/<APP_NAME>:latest', ‘-f’, 'Dockerfile' ]

Just add gs:// before the name of your bucket.只需在存储桶名称前添加gs://即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么 Cloud Code 不尊重我的 cloudbuild.yaml 文件,但 gcloud beta 构建提交是? - Why isn't Cloud Code honoring my cloudbuild.yaml file but gcloud beta builds submit is? gcloud beta 构建触发器运行 - 为什么指定分支名称 - gcloud beta builds triggers run - why specify branch name :gcloud dataproc 作业提交 pyspark - 错误 AttributeError: 'str' object 没有属性 'batch' - !gcloud dataproc jobs submit pyspark - ERROR AttributeError: 'str' object has no attribute 'batch' 日志中缺少 MDC 值 - MDC value missing from log GCloud 签名不匹配 - GCloud SignatureDoesNotMatch GCP Vertex AI - gcloud ai endpoints create defined 的返回值是多少? - GCP Vertex AI - what is the return value of gcloud ai endpoints create defined? gcloud '没有这样的文件或目录' - gcloud 'no such file or directory' 使用 gcloud 报告 Stackdriver 错误 - Stackdriver error reporting with gcloud 如何安装或卸载 gcloud? - How to install or uninstall gcloud? AppEngine:查询数据存储以获取记录<missing>价值</missing> - AppEngine: Query datastore for records with <missing> value
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM