I. Environment building

1. Configure the Gradle environment

2. Download the Jenkins

Download the latest version (a WAR file) from Jenkins. The Jenkins environment is supported by any system, and the configuration method is similar. I chose to use war package directly, because some online said there was a problem with PKG, I did not use it. Select the Generic Java Package (.war) option for Weekly. Put the WAR package in a file, go to the current folder through the console, and type in the console

java -jar jenkins.war

3. The configuration Jenkins

1. Install the plugin in the browser by typing localhost:8080, you will see the little old man above, which will ask you to enter the password, when you go to the console, you will find the password, and then there will be an installation wizard, which will allow you to choose whether to install the plugin in full or custom. If you forget the password of the admin account, you can go to the initialAdminPassword file under the. Jenkins /secrets/ directory to check the password

4. Install kenkins plug-in

Open localhost:8080 and install the recommended plug-ins

5. Configure the git user name and address

6. Configure the Java compilation environment

7. When the package starts, an error message is displayed. Modify the package according to the error

The original source: www.jianshu.com/p/74dd11121…