org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: Credentials for the configured Google Account could not be found

Jenkins JIRA | Brice Figureau | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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: {code} 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) {code} 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: # Start with no google play account credentials stored # Create one, upload the p12 file # Setup a new job, the credential pop-up lists the only user # Run the build

    Jenkins JIRA | 2 years ago | Brice Figureau
    org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: Credentials for the configured Google Account could not be found
  2. 0

    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: {code} 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) {code} 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: # Start with no google play account credentials stored # Create one, upload the p12 file # Setup a new job, the credential pop-up lists the only user # Run the build

    Jenkins JIRA | 2 years ago | Brice Figureau
    org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: Credentials for the configured Google Account could not be found

    Root Cause Analysis

    1. org.jenkinsci.plugins.googleplayandroidpublisher.UploadException

      Credentials for the configured Google Account could not be found

      at org.jenkinsci.plugins.googleplayandroidpublisher.GooglePlayPublisher.getServiceAccountCredentials()
    2. org.jenkinsci.plugins
      ApkPublisher.perform
      1. org.jenkinsci.plugins.googleplayandroidpublisher.GooglePlayPublisher.getServiceAccountCredentials(GooglePlayPublisher.java:39)
      2. org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:301)
      2 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      4. hudson.model.Build$BuildExecution.post2(Build.java:182)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669)
      6. hudson.model.Run.execute(Run.java:1731)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:232)
      9 frames