keytool -list -v -keystore YunlongSingn.jks
List all signed app filesCopy the code
Android + Jenkins + Gradle package
Install Jenkins
Lots of online documentation!Copy the code
Jenkins configuration
Step1 configure global tools
System administration -> Global tools configuration select JDK installation select Gradle installation recommended in advance download local, automatic installation will be very slow! The specific configuration is shown as follows:Copy the code
In JDK configuration JAVA_HOME can be found in AndroidStuido path! File->otherSetting->Defalut Project Struceture GradleCopy the code
Step2 set global properties
System Administration -> Global Settings -> Global Properties -> Environment Variables key value pair set SDK directory location the same as JDK path searchCopy the code
Step3 create a task
Select The New Task to the New Task screen, enter the task name and select build a free style software projectCopy the code
Project Settings
Ci options have 6 steps, simple packaging can be 🈯 only set up source management (Git or SVN), build, and description. Now that we've done simple packaging, let's focus on building!Copy the code
In the build step, select add build step ->Invoke Gradle script-Wrapper location: native Wrapper location, Just in the Jenkins directory in the work interval - Switches: fill in the clean assembleRelease other commands look at the figure below - Root Build script: package pathCopy the code
End: I don't know what else, but I'll leave it here. Simple records. Refer to the blog below for details.Copy the code
Step4 refer to documents
- Jenkins implements automated packaging for Android
- Use Jenkins for Android automatic packaging
- Android – Jenkins autopackage signature