Service account associating with Jenkins agents provisioned by GCE plugin does not have the scope userinfo-email, which is suggested by official GKE docs to configure RBAC for the service account to deploy to GKE.
Proposal:
Add the userinfo-email OAuth2 scope beside current cloud-platform scope.
Background:
Service account associating with Jenkins agents provisioned by GCE plugin does not have the scope
userinfo-email
, which is suggested by official GKE docs to configure RBAC for the service account to deploy to GKE.Proposal:
Add the
userinfo-email
OAuth2 scope beside currentcloud-platform
scope.Github issue:
https://github.com/jenkinsci/google-compute-engine-plugin/issues/476
Testing done
Local unit test passed using
maven:3.8.6-openjdk-11
: