尚未正确配置Gerrit googleplay发布商插件凭据

NoE*_*ape 6 android-build gerrit google-play

我将gerrit与Google Play Android Publisher插件一起使用,就像它在插件页面上的插件教程中描述的那样..apk已签名,如果我通过google play gui上传,则上传效果很好.

当我尝试使用gerrit上传它时,我得到了错误.记录如下:

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
Run Code Online (Sandbox Code Playgroud)

对于谷歌播放凭证我使用p12键与电子邮件看起来像

serviceaccountforgerrit@api-64****-*****8.iam.gserviceaccount.com 
Run Code Online (Sandbox Code Playgroud)

以及在页面上生成密钥时获得的密钥文件,如下所示:

https://console.developers.google.com/permissions/serviceaccounts?project=api-64****-*****8
Run Code Online (Sandbox Code Playgroud)

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

https://play.google.com/apps/publish/?dev_acc=*******#ApiAccessPlace
Run Code Online (Sandbox Code Playgroud)

服务帐户可以获得所有权限.可能是什么问题呢?

Ján*_*iár 6

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

你可以通过manualy安装降级.

  1. 点击此处下载:https: //updates.jenkins-ci.org/download/plugins/google-oauth-plugin/(这是一个*.hpi文件)

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

这个对我有用.