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

"Credentials for the configured Google Account could not be found" when registering only one Google Play credential

XMLWordPrintable

      After creating a Google Play credentials as explained in the Wiki for this plugin, and configuring the job where I see the credential pop-up listing my only user.
      But when the job executes, I get this error:

      15:05:12 Upload failed: org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: Credentials for the configured Google Account could not be found
      15:05:12 	at org.jenkinsci.plugins.googleplayandroidpublisher.GooglePlayPublisher.getServiceAccountCredentials(GooglePlayPublisher.java:39)
      15:05:12 	at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:301)
      15:05:12 	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
      15:05:12 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756)
      15:05:12 	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      15:05:12 	at hudson.model.Build$BuildExecution.post2(Build.java:182)
      15:05:12 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669)
      15:05:12 	at hudson.model.Run.execute(Run.java:1731)
      15:05:12 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      15:05:12 	at hudson.model.ResourceController.execute(ResourceController.java:88)
      15:05:12 	at hudson.model.Executor.run(Executor.java:232)
      

      Looking at the config.xml for this job shows that there is no "googleCredentialsId" field (which explains the stacktrace above).

      After I added a second credential, the build worked correctly, and the config.xml was correct.

      Steps to reproduce:

      1. Start with no google play account credentials stored
      2. Create one, upload the p12 file
      3. Setup a new job, the credential pop-up lists the only user
      4. Run the build

            orrc Christopher Orr
            masterzen Brice Figureau
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: