Download Jenkins

java -jar jenkins.war
Copy the code

Java-jar Jenkins. War –ajp13Port=-1 –httpPort= XXX

baseDirForScriptSelf=$(cd "$(dirname "$0")"; pwd)
cd ${baseDirForScriptSelf}
java -jar jenkins.war --ajp13Port=-1 --httpPort=80
Copy the code

Download the fastlane

Since Jenkins FIR plugin is invalid, all fastlane is used, only to upload FIR

CD to the project path

fastlane init
Copy the code

Install the fir cli

Fastlane action fir_cli fastlane action fir_cliCopy the code

Upload apK files

fastlane run fir_cli api_token:"YOUR_FIR_API_TOKEN" specify_file_path:"YOUR IPA OR APK FILE PATH"
Copy the code

You can also write instructions in Fastfile

Jenkins configuration

JDK configuration, Android Home configuration, Gradle select download

Description setter Plugin; Git Parameter plug-in; Qy Wechat Notification Plugin

Project configuration