1

我们将 HockeyApp 用于我们的 Android 应用程序。

我们希望自动化所有部署过程。我们开始使用 Bamboo 来构建我们的 .apk 文件,最后一步是将其分发给 Hockey。

在互联网上浏览了很多之后,我找不到任何可用的插件来做到这一点。我发现唯一可用的是:IOS、Cocoa 和 Xcode 对 Bamboo 插件的支持——但这仅适用于 IOS。

如果 Bamboo 没有其他插件可以使用,也许有人知道我们可以自动化将 .apk 分发到 Hockey 的过程?(例如编写脚本或 HockeyApp 支持的东西)。

谢谢,

路易莎

4

1 回答 1

5

After some tinkering I found a method that works for me. I added an additional Script to the Build Job and used the following in the script body (be sure to use the apk filename in your config):

curl \
  -F "status=2" \
  -F "notify=1" \
  -F "notes=Some new features and fixed bugs." \
  -F "notes_type=0" \
  -F "ipa=@app/build/outputs/apk/app-release.apk" \
  -H "X-HockeyAppToken: AppTokenHere" \
  https://rink.hockeyapp.net/api/2/apps/upload
于 2016-05-14T18:16:35.840 回答