我想部署BitBucket到谷歌应用引擎,我已经做了所有的配置使用bitbucket-cloud/docs/deploy-to-google-cloud/这个链接。我完成了bitbucket-pipelines.yml,如下所示:
image: atlassian/default-image:2
pipelines:
default:
- step:
script:
- pipe: atlassian/google-app-engine-deploy:0.7.3
variables:
KEY_FILE: $KEY_FILE
PROJECT: 'project_id'
DEPLOYABLES: 'SlickErp/war/WEB-INF/appengine-web.xml'
VERSION: '11'
#BUCKET: 'gs://my-bucket'
IMAGE: 'gcr.io/my/image'
PROMOTE: 'true'
STOP_PREVIOUS_VERSION: 'true'
#EXTRA_ARGS: '--logging=debug'并且还在存储库变量中配置了项目和KEY_FILE。当我运行我的部署到google应用程序引擎的管道时,得到以下问题:-
Digest: sha256:ba2b161552a88f64dc0d3a5efe391aff52b06e16ca9b3933d0f0279869580465
Status: Downloaded newer image for bitbucketpipelines/google-app-engine-deploy:0.7.3
INFO: Setting up environment.
echo "${KEY_FILE}" | base64 -d >> /tmp/key-file.json
gcloud auth activate-service-account --key-file /tmp/key-file.json --quiet --verbosity=warning
Activated service account credentials for: [account@appspot.gserviceaccount.com]
gcloud config set project project_id --quiet --verbosity=warning
Updated property [core/project].
WARNING: You do not appear to have access to project [project_id] or it does not exist.
INFO: Starting deployment to GCP app engine...
gcloud app --quiet deploy SlickErp/war/WEB-INF/appengine-web.xml --version=11 --image-url gcr.io/my/image --promote --stop-previous-version --verbosity=warning
Services to deploy:
descriptor: [/opt/atlassian/pipelines/agent/build/SlickErp/war/WEB-INF/appengine-web.xml]
source: [/opt/atlassian/pipelines/agent/build/SlickErp/war]
target project: [project_id]
target service: [default]
target version: [11]
target url: [https://project_id.an.r.appspot.com]
Beginning deployment of service [default]...
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: WEB-INF/appengine-web.xml is required for this runtime.
✖ Deployment failed.我在错误下面看到的问题是什么:-
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: WEB-INF/appengine-web.xml is required for this runtime.
✖ Deployment failed.有什么帮助吗?提前谢谢你
发布于 2020-06-27 00:01:37
gcloud部署找不到appengine-web.xml文件,请验证您是否在yml文件中写入了正确的路径。
https://stackoverflow.com/questions/62588555
复制相似问题