Pgyer document center

Upload the App to PGYER Using the Jenkins Plugin

This article will show you how to upload ipa/apk to PGYER using the jenkins plugin.

Function

  1. Fill in the visual form information and upload the ipa/apk file to Dandelion.
  2. The information returned by dandelion after upload can be used for other build steps in jenkins.

Installation method

Manual installation:

  1. Download plug-in upload-pgyer.hpi, manually import jenkins, click here to download the plugin installation package.

  2. Select jenkins -> System Management -> lug-in Management -> Advanced, find Deploy Plugin, click select file, then select the file downloaded in the previous step, click the button Deploy, as shown in the figure: 本地导入插件

Install via plugin library:

Select Manage Jenkins -> Manage Plugins -> Available -> Search -> Enter Upload to pgyer -> install

Use plugins

  1. Add build steps upload to pgyer with apiV2 in the Post build operation of jenkins' job configuration page, as shown below:

添加插件

After the plug-in is successfully added, the following effect will be displayed:

插件配置

Plug-in filling parameter description:

Description
pgyer api_key api_key of dandelion (required)
scandir ipa/apk directory (required)
file widcard Wildcard character of the file to be uploaded. (Mandatory.) For example, android or ios. The default android
buildType The type of application you want to upload. Supported (required)
installType(optional) Specifies the application installation mode. The value is 1,2,3. The default value is 1. 1: Open installation 2: password installation 3: invitation installation. (Optional)
password(optional) Sets the App installation password(optional)
updateDescription(optional) (optional)
  1. Execute the build, Dandelion upload plug-in will output the corresponding log, as shown below:

上传蒲公英的log

  1. After a successful dandelion upload, the parameters returned after a successful dandelion upload can be used in other builds in jenkins. The plugin injects the parameter returned by PGYER into a jenkins global variable, which can be directly referenced in the usage methods of other build steps, and the variable name is directly used with the returned key value. For example, ${appBuildURL}

After the success of the dandelion upload the return parameter reference here.