我将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
对于谷歌播放凭证我使用p12键与电子邮件看起来像
serviceaccountforgerrit@api-64****-*****8.iam.gserviceaccount.com
以及在页面上生成密钥时获得的密钥文件,如下所示:
https://console.developers.google.com/permissions/serviceaccounts?project=api-64****-*****8
我已经创建了一个新的服务帐户,其中选中了“提供新的私钥”复选框,并选中了P12单选按钮。我还允许在google play开发者控制台api设置中访问此密钥
https://play.google.com/apps/publish/?dev_acc=*******#ApiAccessPlace
服务帐户可以获得所有权限。可能是什么问题呢?
我有同样的问题,但我解决了将Google oAuth插件(Google Play发布插件的依赖项)从v0.4更改为v0.3。
您可以手动安装降级。
这个对我有用。
它是2018年,不幸的是这个问题仍然存在。来自János answer和Andy Answer的解决方案是正确的。
如果某人已经安装了最新的Google Play发布插件,请让我一步一步地写下工作解决方案。
现在Google Play发布插件的错误应该已经消失了。
更新:通过按照上面提到的降级某些插件版本号的过程,您将从Jenkins Jobs中删除GIT部分。即:你无法为你的詹金斯工作选择Git分支,你的Git分支的轮询就会停止。
问题是,当您将凭据文件上传到Jenkins的Google OAuth插件时,凭据未正确上传,并且没有凭据文件可让Google Play Publisher正常运行。