A simple introduction
Pgyer can upload the application to the site, generate installation link and qr code user to open the installation link, or scan code qr code, can start installation.
Install plugin
-
Recommend
Manage Jenkins
->Manage Plugins
->Available
->Search
-> enterUpload to pgyer
->install
-
Alternate
-
Click here to download the latest version
-
Manage Jenkins
->Manage Plugins
->Advanced
->Upload Plugin
->Choose file
-> chooseupload-pgyer.hpi
->Upload
-
Build parameters
In version 2.1 removed the two build parameters, respectively isUploadPgyer
and uploadPgyerTimeout
, changing the build parameter buildName
to buildType
, and buildType
to be required
User's guidance
So this plugin can be uploaded to the pgyer platform!And it can put the fields returned by pgyer into an environment variable, which you can use in other build steps, You can select upload to pgyer
by adding build steps or adding post-build steps.
Introduction to parameters
field | explanation |
---|---|
pgyer api_key | (Required) API Key, used to identify the identity of the API caller, if not specified, each interface needs to contain this parameter.For the same pgyer registered users, this value is fixed.Click to get pgyer api_key |
scandir | (Required) Need to upload ipa or apk file base dir path! The default is ${WORKSPACE}, It means the path of the current project!It is using ant's DirectoryScanner class, click to see DirectoryScanner classIt is equivalent to the parameters of the basedir method in the DirectoryScanner class! click to see basedir method |
file wildcard | (Required) Need to upload ipa or apk file name, Support wildcards,like this: **/*.apklike this: **/Test?/*_sign.apkIt is using ant's DirectoryScanner class, click to see DirectoryScanner class It is equivalent to the parameters of the includes method in the DirectoryScanner class! click to see includes method |
buildType | (Required) Need to upload app type, Support buildType,like this: androidlike this: iosThe default: android! |
installType | (Optional) Application installation, the value is (1,2,3).1: public, 2: password installed, 3: invitation to install.The default is 1 public! |
password | (Optional) Set the App installation password, if you do not want to set the password, please pass empty string, or not pass. |
updateDescription | (Optional) Version update description, please pass empty string, or not pass. |
channelShortcut | (Optional) The download short link of the specified channel that needs to be updated, only one channel can be specified, string type, such as: abcd. |
Running log
When it runs successfully, you can use the environment variables that are used! for example:
Change Log
Version 2.1(2022-10-26)
- Minimum Jenkins requirement: 2.277.1
- Example Remove configurations related to apiv1
- removed
isUploadPgyer
build parameter - removed
uploadPgyerTimeout
build parameter - removed
buildName
build parameter - add
buildType
build parameter (required) - api changes
- Upgrade Gson 2.9.0
- Upgrade OkHttp3 4.10.0
- Optimize code to improve stability
Version 1.34(2020-08-15)
- Minimum Jenkins requirement: 2.164.1
- Add
isUploadPgyer
build parameter - Add
uploadPgyerTimeout
build parameter - Upgrade pgyer api, add
channelShortcut
parameter - Change the default value of
installType
to 1 - Optimize parameters verification
- Upgrade Gson 2.8.6
- Upgrade Ant 1.10.8
- Upgrade OkHttp3 3.14.9
- Optimize code to improve stability
Version 1.33(2019-09-07)
- Fixed SECURITY-1044
- Upgrade gson 2.8.5
Version 1.31(2018-05-07)
- Upgrade gson 2.8.4
- Optimize upload log
- Change the document image address.
Version 1.30(2018-04-16)
- Remove jsoup, and import okhttp that be used network
- Add upload file progress
- Add pgyer api v2