1

I have configured my Jenkins job to upload signed-apks via plugin Google Play Android Publisher Plugin to google play console.

I have also signed my apk following the description on plugin read me page.

However I keep getting:

The Google Service Account credential 'Google Play Android Developer' has not been configured correctly.Update the credential, ensuring that the required data have been entered, then try again

Anything that I missed apart from the steps followed?

Note: I have granted Admin access to the API User (Jenkins) in Play Console.

xrnd
  • 1,273
  • 3
  • 21
  • 38

1 Answers1

-1

After few day's efforts and splitting my jenkins job into two different parts, and trying all the hacks, this answer solved my problem.

I simply had to downgrade token-macro to 1.10, google-play-publisher to 1.5 and Oauth 0.3 plugin in Jenkins.

To publish my signed-apks to play console via Jenkins. Its known bug and still exists in latest version of google-play-publisher plugin.

xrnd
  • 1,273
  • 3
  • 21
  • 38
  • Unfortunately this solution would remove the GIT section from Jenkins Jobs. i.e: You will no longer have branch selector in your Jenkins Job neither you will have the Git Polling working. I can say that this solution is not working. – Yasir Ali Apr 17 '18 at 12:21
  • Yasir, the git configuration is based on Git Plugin 3.8.0 (https://wiki.jenkins.io/display/JENKINS/Git+Plugin). So if you see that option removed, then use git plugin to have that option again. Works for me absolutely fine. – xrnd Apr 18 '18 at 04:02
  • Will be happy to share exact configs and plugin details if it still doesnt work for you. My Jenkins version is "Jenkins ver. 2.107.1" – xrnd Apr 18 '18 at 04:03
  • Current Git version is dependent on other plugins which would require to downgrade all those plugins as well and the chain goes on. Just to resolve a small issue for a single plugin, downgrading tons of other dependent plugins is not a reliable way. In a Shared Jenkins environment where there are multiple projects from different teams (node.js teams, angular teams, iOS teams) are running, downgrading multiple plugins could break the whole Jenkins system. – Yasir Ali Apr 20 '18 at 13:31
  • I would suggest to use Gradle plugin to publish apks to Google Play Store. – Yasir Ali Apr 20 '18 at 13:33
  • I have downgraded 3 Plugins so far. Unsure of gradle plugin, let me give it a try. – xrnd Apr 21 '18 at 02:34
  • Please note that "Gradle Plugin" meant to be a plugin for Gradle not Jenkins. I added com.github.triplet.play Plugin into my build.gradle file and now i can execute the gradle task from Jenkins to publish the apk to PlayStore. – Yasir Ali Apr 23 '18 at 12:22
  • Oh yes, I had done that to directly publish. However I had multiple reasons to do it via jenkins.. I agree that downgrading plugins can lead to affect a lot of projects. Its a workaround, until I figure out the best solution. – xrnd Apr 24 '18 at 02:33
  • I can't even downgrade the Oauth plugin in Jenkins now. – 1800 INFORMATION Aug 06 '18 at 23:03