Jenkins configuration with the necessary environment configuration
One: Jenkins server (Linux system for example):
1.JDK Installation and Configuration
2.SDK Installation and Configuration
3. Gradle version of the installation configuration (recommended Gradle version above 4.1)
Server-side configuration attention issues:
1. If the system error: parsing the SDK, no caching allowed.
The environment variables need to be set android_home in the system and android_ndk_home (if any). (Click on the left of system management--system settings--Find Global Properties--click Add tick environment variable)
2. If you run an error: A problem occurred evaluating project ': Nativecomponents '.
Need to configure the appropriate NDK and install the version that matches the Gradle file
3. If you run an error: Can ' t retrieve the Gradle executable
Requires the Gradle version of the installation configuration
Two: Jenkins client configuration details are as follows:
1. Create a job type
2.General Configuration
3.Source Code Management
4.Build Triggers
5. Build Environment
6.build
Recommended Posts: 50820308
Https://www.jianshu.com/p/441e75f527f2
Jenkins + Gradle + pgyer + Android Auto Release