gpt4 book ai didi

python - Jenkins -push 将部署阶段的失败部署到 Google App Engine

转载 作者:太空宇宙 更新时间:2023-11-03 17:43:34 24 4
gpt4 key购买 nike

这是 here 的后续问题.

所以我设法让 python 测试运行。我已经使用推送配置了 Jenkins 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

最佳答案

所以我想通了。只需添加版本即可运行!!

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

关于python - Jenkins -push 将部署阶段的失败部署到 Google App Engine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30135371/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com