retest / rebazer

Helper service to handle pull requests on GitHub and Bitbucket.
GNU Affero General Public License v3.0
7 stars 2 forks source link

Fix Warning: IOException while Travis build #55

Open martin-v opened 6 years ago

martin-v commented 6 years ago

[WARNING] unable to get access token for Google Container Registry, configuration for building image will not contain RegistryAuth for GCR java.io.IOException: Error code 404 trying to get security access token from Compute Engine metadata for the default service account. This may be because the virtual machine instance does not have permission scopes specified.

Cause is probably that on the travis build vm image contains some magic ENV variables or GCR build tools. This triggers the automatic support of the GCR in the docker plugin.

martin-v commented 6 years ago

The GoogleCredentials for Google Container Registry is created in https://github.com/google/google-auth-library-java/blob/13c2418a6c511765761de9e52a9f03016044dae8/oauth2_http/java/com/google/auth/oauth2/DefaultCredentialsProvider.java#L139