2015-05-09 137 views
1

这是here的问题。Jenkins - 推送部署到Google App Engine的部署失败

所以我设法让python测试运行。我已经使用push部署来自谷歌

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

+0

请显示您的app.yaml。 –

+0

我已将它添加到主帖子中。 –

+0

试试这样做“gcloud预览app部署目录--project cfc-melbourne-website”添加包含yaml文件的目录名称。 给你的提示。 app.yaml文件中的应用程序字段已弃用,gcloud未使用该字段。相反,请确保您的Google Developers Console项目名称已在gcloud config中正确设置。来自https://cloud.google.com/sdk/gcloud-app的参考 –

回答

1

所以我想通了。只需添加版本,它的作品!

gcloud --project=cfc-melbourne-website preview app deploy app.yaml --version=1