Giter VIP home page Giter VIP logo

upload-pgyer-plugin's Introduction

license Jenkins Plugins Jenkins Plugin installs

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 -> enter Upload to pgyer -> install

  • Alternate

    1. Click here to download the latest version

    2. Manage Jenkins -> Manage Plugins -> Advanced -> Upload Plugin -> Choose file -> choose upload-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 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: **/*.apk
like this: **/Test?/*_sign.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
buildType (Required) Need to upload app type, Support buildType,
like this: android
like this: ios
The 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)

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

upload-pgyer-plugin's People

Contributors

manongxiaoyun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

upload-pgyer-plugin's Issues

域名已更换xcxwo.com

What feature do you want to see added?

获取token的域名需更换为xcxwo.com,否则重定向后会丢失参数

{
"code": 1001,
"message": "_api_key could not be empty"
}

Upstream changes

No response

slave upload failed

slave upload failed

[UPLOAD TO PGYER] - scan dir isn't exist or it's not a directory!
[UPLOAD TO PGYER] - The uploaded file was not found,plase check scandir or wildcard!

插件上传包成功,通过${appBuildURL}返回的链接,下载后的apk文件名是md5名称的(如:b76d23affb0d251792a78d47912414cf.apk),并不是后台设置的按原文件名

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

jenkins接入v2插件

Reproduction steps

1、通过插件上传包成功
2、返回${appBuildURL}链接,通过这个链接下载的apk包,文件名是MD5文件名,并不是蒲公英后台设置的原文件名称
3、以前正常的,自从域名备案导致插件用不了事件后就不正常了

Expected Results

我项目打包上传的apk文件名为appxxx_1.0.0_10.apk,蒲公英后台设置原文件名下载,那么通过${appBuildURL}链接下载后,期望文件仍为appxxx_1.0.0_10.apk命名,而不是变为b76d23affb0d251792a78d47912414cf.apk

Actual Results

项目打包上传的apk文件名为appxxx_1.0.0_10.apk,通过${appBuildURL}链接下载后,文件变为b76d23affb0d251792a78d47912414cf.apk了

Anything else?

no

Are you interested in contributing a fix?

no

Jenkins master/slave模式下无法上传

What feature do you want to see added?

当在slave节点打包,会出现找不到文件。因为插件会在master节点找文件,但是apk在slave节点。

请问是否可以支持

Upstream changes

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.