Recently, the company developed its own app, research and development process for testers, often like the development of the staff asked, there is no latest package AH (APK package after the new version), in case you test, submitted some defects, in fact, people have been solved. Of course, you can also say that the development process of your company is too messy. Release the new version should not be on time, according to the planned execution test.
The actual situation is indeed multiple versions of a day or a few days to a version. (Agile testing is implemented, but not in the right place.)
This has a pain point, we testers can not directly pack the APK, and keep the daily version is up to date.
In the case of the Android version, iOS is not configured successfully.
The demand is that we want to be able to scan to install to the phone, without looking for the development of the APK then the data line or something.
Inadvertently see a post in Testhome just solves this problem. https://testerhome.com/topics/5285 (main content see this post)
So I did it, and it was pretty good.
First, let's start with the principle that Jenkins is a continuous integration tool. can help us pull up the latest code from the server, then execute some script commands, after execution, feedback results. All of this can be planned on a regular basis.
The core of the requirement is how to package the APK and upload it to the server, then return to our one (QR code)
This is the order of the Jenkins build step. What I want to share here is the fir.im platform. This is a beta application platform.
Use the command line to implement the package upload apk and return a QR code.
I'm just adding to this section, because the posts mentioned in the article are very detailed.
The fir.im platform has its own tool https://github.com/FIRHQ/fir-cli, which is written in the Ruby language. So you need to configure the Ruby environment.
Ruby installed after the gem install fir-cli similar to the PIP install in Python. Of course you have to make sure that your Ruby and GEM versions are new versions. In addition, because everyone knows why. You may need an image. http://gems.ruby-china.org/after replacing the server address. The download will continue to execute.
Once installed, this command can be packaged and uploaded. See here for details https://github.com/FIRHQ/fir-cli/blob/master/doc/build_apk.md
Token is a string of fir. Im platforms that identify your identity information. Sign up and sign up to get tokens from your account
In fact, fir is just a layer of encapsulation, in essence, the Gradle to pack the APK. So once the error, follow the prompt step by step, most of the SDK Android package is not complete, or the Gradle configuration is incorrect.
Perform
The last picture returned
Find a way to put a script on the server corresponding to the seat on it. Set build description is a Jenkins plugin.
And that's the effect.
How to automate with Jenkins to build new versions and QR codes for download