I use gerrit with Google Play Android Publisher Plugin the way it described in plugin tutorial on the plugin page. .apk is signed and if I upload it via google play gui it uploads well.
When I try to upload it using gerrit i get en error. Log below:
Upload failed: The Google Service Account credential 'GooglePlayAPICredentials' has not been configured correctly.
Update the credential, ensuring that the required data have been entered, then try again
- No changes have been applied to the Google Play account
Build step 'Upload Android APK to Google Play' marked build as failure
Finished: FAILURE
For google play credentials i use p12 key with email that looks like
serviceaccountforgerrit@api-64****-*****8.iam.gserviceaccount.com
and the keyfile i got while generating the key on a page that looks like:
https://console.developers.google.com/permissions/serviceaccounts?project=api-64****-*****8
I have created a new service account with "Furnish a new private key" checkbox checked and P12 radiobutton selected. I have also granted access to this key in google play developer console api settings
https://play.google.com/apps/publish/?dev_acc=*******#ApiAccessPlace
Service account have every permission possible. What could be the problem?
I have a same issue, but I solve with change the Google oAuth plugin (dependency for Google Play publish plugin) from v0.4 to v0.3.
You can downgrade by install manualy.
Download here: https://updates.jenkins-ci.org/download/plugins/google-oauth-plugin/ (this is a *.hpi file)
Manage Jenkins > Manage Plugins > Advanced > Upload plugin
It works for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With