1. tomcat installation configuration link as follows:
https://blog.csdn.net/weixin_43404791/article/details/105333768
2. Installation
There are two main jenkisn installation, including the use of mirrors mounted docker war package and installation. Here docker I started to use the installation, but failed, so the package is installed into war.
2.1 First, jenkisn official website to download jenkisn war package
http://mirrors.jenkins.io/war/latest/jenkins.war
After downloading tomcat webapps directory needs to be placed under
Last tomcat 2.2 configuration file
- First tomcat coding, conf in the tomcat / server.xml
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
- Jenkins then configure service, add the following in the node's node tomcat conf / server.xml of:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<context path="/" docBase="jenkins.war" debug="0" privileged="true" reloadable="true"/>
Start Access 2.3
After starting the tomcat, enter in your browser "http: // ip: 8080 / jenkins" access, you can see the boot screen, then follow the prompts to unlock jenkins, jenkins is best not to install the online plug-in
3. Configure Jenkins global information and install the plug
3.1 to configure the first global information.
Click System Administration - "" Global Tool Configuration "
Here we will configure three things: Maven, JDK and Git
- first configure maven.
After the premise is the amven installed on the machine, and then configure the maven of information related to two: one is the location settings.xml file.
- the other is the Maven environment variable
- After configuration jdk, provided that the installed JDK on the machine
- Last configure git, git premise is already installed
Once configured, the application of preservation
3.2 plug-in installation
jenkins plug-ins do not line installation, it is best to select the plug-upload
plugin URL: http: //updates.jenkins-ci.org/download/plugins/
download the required plug-ins:
then click System Manager - "plug-in management -" Advanced - "select the plug-in and upload