如何从 Jenkins/Hudson 上传 APK 到 Play 商店? [英] How to upload an APK from Jenkins/Hudson to Play Store?
问题描述
我使用 Jenkins 实现了一个持续集成管道,但作为最后一步,我希望 Jenkins 将已签名的 APK 文件部署/上传到 Google Play 商店和 AndroidPit.我寻找 Jenkins/Hudson 插件,但只找到了两个:一个用于 Appaloosa,一个用于 Zubhium.
I implemented a continuous integration pipeline using Jenkins, but as final step I want Jenkins to deploy/upload the signed APK file to Google Play Store and AndroidPit. I looked for Jenkins/Hudson plugins but only found two: one for Appaloosa and one for Zubhium.
我在 Google Play 和 AndroidPit 上都有一个有效的开发者帐户,可以手动上传 Jenkins 生成的 APK.但我的问题是:有没有人知道教 Jenkins 的方法(例如通过 shell 脚本?)将 APK 上传到提到的应用商店?
I have a working developer account both on Google Play and on AndroidPit and can manually upload the APK that Jenkins produces. But my question is: Does anybody know a way to teach Jenkins (e.g. via a shell script?) to upload the APK to the mentioned app stores?
推荐答案
有一个Google Play Publishing API 的 Jenkins 的 ">Google Play Android Publisher 插件,在2014 年 Google I/O 大会.
There is a Google Play Android Publisher plugin for Jenkins which uses the Google Play Publishing API, announced at Google I/O 2014.
Google 还发布了 Java 和 Python 库以帮助使用 API.
Google has also released Java and Python libraries to help make use of the API.
有关 API 的更多信息,另请参阅:
http://android-developers.blogspot.com/2014/07/grow-with-google-play-scaled-publishing.html
For more info on the API, see also:
http://android-developers.blogspot.com/2014/07/grow-with-google-play-scaled-publishing.html
这篇关于如何从 Jenkins/Hudson 上传 APK 到 Play 商店?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!