Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50557

GCR Credentials Plugin does not work

    Details

    • Similar Issues:

      Description

      All builds trying to use this plugin result in the following... 

      ERROR: Could not find credentials matching gcr:SOMEPROJECT
      hudson.AbortException: Could not find credentials matching gcr:plasma-column-128721
      	at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:217)
      	at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:204)
      	at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:196)
      	at com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:455)
      	at com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:431)
      	at com.cloudbees.dockerpublish.DockerBuilder$Perform.buildAndTag(DockerBuilder.java:373)
      	at com.cloudbees.dockerpublish.DockerBuilder$Perform.exec(DockerBuilder.java:311)
      	at com.cloudbees.dockerpublish.DockerBuilder$Perform.access$100(DockerBuilder.java:291)
      	at com.cloudbees.dockerpublish.DockerBuilder.perform(DockerBuilder.java:262)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      	at hudson.model.Build$BuildExecution.build(Build.java:206)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      	at hudson.model.Run.execute(Run.java:1727)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Build step 'Docker Build and Publish' marked build as failure
      Finished: FAILURE
      
      

      I have tried different Domains and putting the credentials in many places but nothing works. 

      It happens in pipeline jobs and also the Build and Publish Plugin. 

      The plugin is broken and does not work. 

        Attachments

          Activity

          Hide
          abobwhite Alex White added a comment - - edited

          I am seeing the same thing. This worked about a week ago but something changed and I've been searching for two days on what the issue is. Using the Google credentials via kubernetes metadata. Driving my crazy that this simple thing won't work.

           

          UPDATE: I ended up just using ```gcloud auth activate-service-account --key-file $FILE``` and then ```gcloud auth configure-docker``` followed by a regular docker push to avoid this issue.

          Show
          abobwhite Alex White added a comment - - edited I am seeing the same thing. This worked about a week ago but something changed and I've been searching for two days on what the issue is. Using the Google credentials via kubernetes metadata. Driving my crazy that this simple thing won't work.   UPDATE: I ended up just using ```gcloud auth activate-service-account --key-file $FILE``` and then ```gcloud auth configure-docker``` followed by a regular docker push to avoid this issue.

            People

            • Assignee:
              wzheng2310 Wei Z
              Reporter:
              jjhughes57 Joseph Hughes
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: