Jenkins : Upload Pgyer Plugin

A simple introduction

中文文档

Pgyer's official website is https://www.pgyer.com/

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.

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.

Screenshot

Introduction to parameters

fieldexplanation
pgyer uKey(APIV1 Required, APIV2 NO) User Key, used to identify the current user's identity, 
for the same pgyer registered users, the value of the fixed!
Click to get pgyer uKey
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 class
It 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: **/Test?/*.apk
It 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
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.
qrcodePath(Optional) If you need to download the qrcode, please enter the save path of the qrcode!otherwise, not download!
envVarsPath(Optional) if you need to save info, please enter save file path! otherwise, not save!

Running log

When it runs successfully, you can use the environment variables that are used! for example:

Pgyer apiV1 returns a description of the field

environment variablesexplanation
appKeyApp Key
appTypeApplication type (1:iOS; 2: Android)
appIsLastestIs it the latest version (1: yes; 2: no)
appFileSizeApp file size
appNameApp Name
appVersionApp Version
appVersionNoFor Android version Numbers, iOS is always 0
appBuildVersionpgyer builds build Numbers that distinguish historical versions
appIdentifierApplication package name, iOS for BundleId, Android for package name
appIconApplication the icon of the key, get the address http://o1wh05aeh.qnssl.com/image/view/app_icons/[appIcon]
appDescriptionIntroduction to the Application
appUpdateDescriptionApplication update description
appScreenshotsApplication the screenshot of the key, get the address http://o1whyeemo.qnssl.com/image/view/app_screenshots/[appScreenshots]
appShortcutUrlApplication short links
appCreatedApplication upload time
appUpdatedApplication update time
appQRCodeURLApplication the qr code address
appPgyerURLApplication pgyer url
appBuildURLApplication build pgyer url

Pgyer apiV2 returns a description of the field

environment variablesexplanation
buildKeyBuild Key is the only index ID that identifies the application
buildTypeApplication Type(1:iOS; 2:Android)
buildIsFirstIs it the first App? (1: Yes; 2: No;)
buildIsLastestIs it the newest? (1: Yes; 2: No;)
buildFileSizeThe size of App
buildNameApp Name
buildVersionThe default is 1.0 (is the logo that to advertise the application, for example: 1.1, 8.2.1, etc.).
buildVersionNoThe version number of the uploaded package, the default is 1 (that is, the compiled version number, in general, the compiler will change once the version number. For iOS, is a string type; for Android it is an integer. For example: 1001 , 28 etc.)
buildBuildVersionpgyer builds build Numbers that distinguish historical versions
buildIdentifierApplication package name, iOS for BundleId, Android for package name
buildIconIcon Key of application, URL is https://www.pgyer.com/image/view/app_icons/[Icon Key of application]
buildDescriptionApplication Description
buildUpdateDescriptionApplication Update Description
buildScreenShotsApplication screenshots key, the address is https://www.pgyer.com/image/view/app_screenshots/[Application screenshots key]
buildShortcutUrlApp Download Url
buildCreatedApp Upload time
buildUpdatedApp Update time
buildQRCodeURLApp QR code Url
appPgyerURLApplication pgyer url
appBuildURLApplication build pgyer url

Change Log

Version 1.33(2019-09-07)

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

Attachments:

upload-pgyer.png (image/png)
upload-pgyer-2.png (image/png)
upload-pgyer-3.png (image/png)