这是来自here的后续问题。
所以我设法让python测试运行。我已使用推送从Google
部署guide来配置Jenkins我正在执行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 :(得分:1)
所以我明白了。只需添加版本即可使用!!
gcloud --project=cfc-melbourne-website preview app deploy app.yaml --version=1