Pgyer internal test distribution service is a leading mobile application internal test distribution platform in China, dedicated to providing easy-to-use App internal test distribution services for mobile developers and test users.
Pgyer Developer Service Platform is committed to providing excellent upstream and downstream services for developers, addressing the various needs of developers throughout the developer life cycle.
Scan QR code to follow
Pgyer WeChat Official Account
Get the latest news, official benefits, promotions and other information
Pgyer document center
这篇文章将向大家介绍如何使用 jenkins 插件上传 ipa/apk 到蒲公英。
手动安装:
下载插件 upload-pgyer.hpi,手动导入 jenkins,点击这里下载插件安装包。
选择 jenkins -> 系统管理 -> 插件管理 -> 高级,找到 Deploy Plugin,点击 选择文件,然后选择上一步中下载的文件,点击按钮 Deploy,如图:
通过插件库安装:
在 jenkins 中选择 Manage Jenkins -> Manage Plugins -> Available -> Search -> 输入 Upload to pgyer -> install
在 jenkins 的 job 配置页面 构建后
操作中添加构建步骤 upload to pgyer with apiV2, 如下图:
插件添加成功后,会显示一下效果:
插件填写参数说明:
参数 | 说明 |
---|---|
pgyer api_key | 蒲公英的 api_key (必填) |
scandir | ipa/apk 所在目录 (必填) |
file widcard | 上传文件的通配符 (必填) 如: android 或者ios, 默认android |
buildType | 需要上传应用程序类型,支持 (必填) |
installType(optional) | 应用安装方式,值为(1,2,3)默认值为1。1: 公开安装 2:密码安装,3:邀请安装。(选填) |
password(optional) | 设置App安装密码(选填) |
updateDescription(optional) | 版本更新描述(选填) |
执行构建,蒲公英上传插件将输出相应的 log,如下图:
上传蒲公英成功后,可在 jenkins 中的其他构建中使用蒲公英上传成功后返回的参数。插件会将蒲公英返回的参数注入为 jenkins 的全局变量,在其他构建步骤的使用方法直接引用这个全局变量即可,变量名称直接使用返回的 key 值。例如:${appBuildURL}
蒲公英上传成功后返回参数的参考 请看这里。
About Us
Product Services
Your account information is under review and can not be used temporarily; you can:
Check out the help documentation for common ways to work on the Pgyer's platform;
Check Pgyer's App Auditing , which must be viewed before uploading.
Currently, the real-name authentication has not been completed, and the number of downloads for each version is limited to 0 times/day, After real-name authentication, it can be extended to 500 times/day
TestFlight is only available to Professional users.(Click understand pgyer's price plan)
支付成功
Pgyer VIP User Group
(Please open WeChat - Sweep and join the group chat)