User does not have permission to access project : Request had insufficient authentication scopes

6/14/2019

I learned Jenkins and I would like to implement the Continuous Delivery with Jenkins and GKE .

I tried to implement without success and I would like to ask you for help because I have been looking for the solution for several days

Here is the error I get: + PYTHONUNBUFFERED=1 gcloud builds submit -t gcr.io/[PROJECT-ID]/nginx­-logam:build-11 .

**

Creating temporary tarball archive of 520 file(s) totalling 2.2 MiB before compression.

Some files were not included in the source upload.

Check the gcloud log [/root/.config/gcloud/logs/2019.06.13/13.44.43.652252.log] to see which files and the contents of the

default gcloudignore file used (see $ gcloud topic gcloudignore to learn

more).

Uploading tarball of [.] to [gs://[PROJECT-ID]_cloudbuild/source/1560433484.05-f41d9f381889486d87b03851f5bd4d02.tgz]

**

ERROR: (gcloud.builds.submit) User [PROJECT-ID-compute@developer.gserviceaccount.com] does not have permission to access project [[PROJECT-ID]] (or it may not exist): Request had insufficient authentication scopes.

I gave the following accesses role to the service [PROJECT-ID] -compute@developer.gserviceaccount.com:

  • Cloud Build Viewer

  • Editor

  • Service Account User

  • Cloud Run Admin

Still, I get the same error.

Is it really and only the account "[PROJECT-ID] -compute@developer.gserviceaccount.com" that is used?

Why, it does not work despite all the roles associated with the account?

Thanks for your help

-- Evabila
continuous-delivery
continuous-integration
google-kubernetes-engine
jenkins

0 Answers