【发布时间】:2020-04-30 00:03:22
【问题描述】:
将 Java 应用部署到 Google App Engine 标准版的适用“cloudbuild.yaml”步骤是什么?
我在文档中找不到与此相关的任何内容。
我正在尝试:
steps:
- name: 'gcr.io/cloud-builders/mvn'
args: [ 'install', '--settings', 'settings.xml' ]
- name: 'gcr.io/cloud-builders/gcloud'
args: [ 'app', 'deploy' ]
timeout: '6m0s'
第一步成功,但第二步失败,并显示以下无用的消息:
Already have image (with digest): gcr.io/cloud-builders/gcloud
ERROR: gcloud crashed (AttributeError): 'NoneType' object has no attribute 'endswith'
我应该改用 maven 部署命令“mvn appengine:deploy”吗?
提前谢谢你。
第二次尝试:
steps:
- name: 'gcr.io/cloud-builders/mvn'
args: [ '--define', 'skipTests', '--settings', 'settings.xml',
'clean', 'package', 'appengine:deploy' ]
timeout: '6m0s'
有了这个结果:
Execution default-cli of goal
com.google.cloud.tools:appengine-maven-plugin:1.3.1:deploy
failed:
The Google Cloud SDK could not be found
in the customary locations and no path was provided.
【问题讨论】: