Upload via the Jenkins Plugin
Install, configure, and use the official Pgyer Jenkins plugin — upload ipa/apk to Pgyer automatically and expose the response as Jenkins global variables.
The official Pgyer Jenkins plugin configures the upload step through a form, publishes ipa/apk builds to Pgyer automatically, and exposes the response as Jenkins global variables that later build steps can reference.
Installation
Manual Install
- Download the plugin
upload-pgyer.hpi: plugin installer. - In Jenkins, go to Manage Jenkins → Plugin Manager → Advanced, find Deploy Plugin, click Choose File, select the file you just downloaded, and click Deploy.
From the Plugin Registry
In Jenkins, go to Manage Jenkins → Manage Plugins → Available → Search, enter Upload to pgyer, and click Install.
Usage
On the Job configuration page, add a upload to pgyer with apiV2 step under Post-build Actions:

Once added, the configuration UI looks like this:

Parameters
| Parameter | Required | Description |
|---|---|---|
pgyer api_key | Yes | Your Pgyer api_key |
scandir | Yes | Directory that contains the ipa/apk |
file widcard | Yes | Upload wildcard, e.g. android or ios; defaults to android |
buildType | Yes | Type of app being uploaded |
installType | No | Install method: 1, 2, or 3; defaults to 1. 1: public; 2: password; 3: invite |
password | No | Install password |
updateDescription | No | Release notes |
Build Log and Return Variables
During the build, the plugin prints upload progress to the log:

On success, the plugin injects the values returned by Pgyer as Jenkins global variables. Later build steps can reference them by name, e.g. ${appBuildURL}:

See the upload API docs for the full list of return fields.