Gerrit googleplay 发布者插件凭据未正确配置 [英] Gerrit googleplay publisher plugin credentials has not been configured correctly

查看:26
本文介绍了Gerrit googleplay 发布者插件凭据未正确配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 gerrit 与 Google Play Android Publisher Plugin 一起使用,其方式在插件页面上的插件教程中描述..apk 已签名,如果我通过 google play gui 上传它,它会很好地上传.

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.

当我尝试使用 gerrit 上传时,出现错误.日志如下:

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

对于谷歌播放凭据,我使用 p12 密钥和看起来像的电子邮件

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

我创建了一个新的服务帐户,选中了提供新的私钥"复选框并选择了 P12 单选按钮.我还在 google play 开发者控制台 api 设置中授予了访问此密钥的权限

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?

推荐答案

我有同样的问题,但我通过将 Google oAuth 插件(Google Play 发布插件的依赖项)从 v0.4 更改为 v0.3 来解决.

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.

  1. 在此下载:https://updates.jenkins-ci.org/download/plugins/谷歌-oauth-插件/(这是一个 *.hpi 文件)

  1. Download here: https://updates.jenkins-ci.org/download/plugins/google-oauth-plugin/ (this is a *.hpi file)

管理 Jenkins > 管理插件 > 高级 > 上传插件

Manage Jenkins > Manage Plugins > Advanced > Upload plugin

它对我有用.

这篇关于Gerrit googleplay 发布者插件凭据未正确配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆