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
Help
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 5 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)