【发布时间】:2015-05-09 02:41:51
【问题描述】:
这是here 的后续问题。
所以我设法让 python 测试运行。我已经使用推送配置了 Jenkins,以便从 Google 部署 guide
我正在执行一个shell命令如下:
gcloud --project=cfc-melbourne-website preview app deploy app.yaml
我收到以下错误
[workspace] $ /bin/sh -xe /opt/bitnami/apache-tomcat/temp/hudson678919665445088696.sh
+ gcloud --project=cfc-melbourne-website preview app deploy app.yaml
WARNING: The [application] field is specified in file [/opt/bitnami/apps/jenkins/jenkins_home/jobs/CFC Melbourne production pipeline/workspace/app.yaml]. This field is not used by gcloud and should be removed.
WARNING: The [version] field is specified in file [/opt/bitnami/apps/jenkins/jenkins_home/jobs/CFC Melbourne production pipeline/workspace/app.yaml]. This field is not used by gcloud and should be removed.
ERROR: The version [1] declared in [/opt/bitnami/apps/jenkins/jenkins_home/jobs/CFC Melbourne production pipeline/workspace/app.yaml] does not match the current gcloud version [20150509t012658].
ERROR: (gcloud.preview.app.deploy) Errors occurred while parsing the App Engine app configuration.
Build step 'Execute shell' marked build as failure
Finished: FAILURE
请帮忙。谢谢。
app.yaml内容可见here
【问题讨论】:
-
请显示您的 app.yaml。
-
我已将其添加到主帖中。
-
尝试执行此“gcloud preview app deploy DIRECTORY --project cfc-melbourne-website”添加包含yaml文件的目录名称。请注意。 app.yaml 文件中的 application 字段已弃用,gcloud 不使用。相反,请确保您的 Google Developers Console 项目名称在 gcloud config 中设置正确。来自cloud.google.com/sdk/gcloud-app的参考
标签: python git google-app-engine jenkins