Jenkins push-to-deploy setup for app-engine fails

懵懂的女人 提交于 2019-12-08 12:49:32

When I attempt to reproduce this using the latest version of the Cloud SDK (0.9.88), I get the following error message:

ERROR: (gcloud.preview.app.deploy) Required scopes ['https://www.googleapis.com/auth/cloud-platform'] missing from ['https://www.googleapis.com/auth/appengine.admin', 'https://www.googleapis.com/auth/devstorage.full_control', 'https://www.googleapis.com/auth/projecthosting', 'https://www.googleapis.com/auth/userinfo.email']. This VM instance probably needs to be recreated with the missing scopes.

The solution is to re-create the VM, as before, but add the scope https://www.googleapis.com/auth/cloud-platform to the list provided in the --scopes flag.

I'll make sure the documentation gets fixed to reflect this. EDIT: the documenation is now fixed.

This answer is misleading; it misidentifies the real issue. I'm leaving it here for posterity.


This looks like a hiccup in the interaction between Google Compute Engine Service accounts and Google Cloud Storage buckets.

To work around, please create a Cloud Storage bucket that the service account on the Jenkins VM can read from/write to, or change the permissions on the Cloud Storage bucket staging.<appname>.appspot.com. The easiest place to do that will be the Google Developer's Console, if you're not familiar with gsutil (the command line tool to perform this operation).


So I have a hunch that it is related to newer versions of gcloud.

Yes, it is. New versions of gcloud use a different deployment mechanism (which will be faster).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!