Jenkins -push将部署阶段的故障部署到Google App Engine

时间:2022-04-03 21:49:42

This is a follow on question from here.

这是一个来自这里的问题。

So I managed to get the python tests to run. I have configured Jenkins using the push to deploy guide from Google

所以我设法让python测试运行。我使用Google推送部署指南配置了Jenkins

I am executing a shell command as follows:

我正在执行shell命令,如下所示:

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

I get the following error

我收到以下错误

[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

Please help. Thanks.

请帮忙。谢谢。

Contents of app.yaml can be seen here

app.yaml的内容可以在这里看到

1 个解决方案

#1


So I figured it out. Just add the version and it works !!

所以我明白了。只需添加版本,它的工作原理!

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

#1


So I figured it out. Just add the version and it works !!

所以我明白了。只需添加版本,它的工作原理!

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