-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert #94
Comments
Thanks for filing! Do you have any steps for reproducing this issue? |
I used this pipeline with all required plugins installed:
|
Looking into this |
I just got an identical traceback; essentially the same groovy. Nothing exotic. Relevant bit looks like: REGISTRY='gcr.io/projectname' docker_image = docker.build(...)
where credential-id is a json service account uploaded into a "Google Service Account from private key" credential. Jenkins 2.249.1 I've re-uploaded the service account json and I'm retrying the build to see if I'm just unlucky, it's a crazy huge docker image. --- UPDATE --- Generating a new service account json and replacing the credential in Jenkins fixed this for me. I suspect but have not verified that the "old" service account json was disabled/removed in GCP. I suppose it is also possible but much less likely there was something about the old service account that broke jenkins. Still a 'bug' but only in that java.lang.NullPointerException isn't a very helpful error message. |
Any idea ? I still have the issue, with new service account
|
This is still an issue. It was working fine and now getting the similar error.
|
java.lang.NullPointerException
at com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert(GoogleContainerRegistryTokenSource.java:48)
at com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert(GoogleContainerRegistryTokenSource.java:32)
at jenkins.authentication.tokens.api.AuthenticationTokens.convert(AuthenticationTokens.java:148)
at jenkins.authentication.tokens.api.AuthenticationTokens.convert(AuthenticationTokens.java:110)
at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.getToken(DockerRegistryEndpoint.java:222)
at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:295)
at org.jenkinsci.plugins.docker.workflow.RegistryEndpointStep$Execution2.newKeyMaterialFactory(RegistryEndpointStep.java:95)
at org.jenkinsci.plugins.docker.workflow.AbstractEndpointStepExecution2.doStart(AbstractEndpointStepExecution2.java:52)
at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE
The text was updated successfully, but these errors were encountered: