Jenkins installation: https://www.cnblogs.com/jhxxb/p/11406805.html
Publishing process: Git -> Maven -> Tomcat
First, the basic environment
Git installation
https://www.cnblogs.com/jhxxb/p/10571227.html
Maven installation
http://maven.apache.org/download.cgi
Download # wget . -O ./apache-maven-3.6.1-bin tar .gz HTTP: // mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.1/binaries/apache- bin.tar.gz-3.6.1-Maven # extracting the tar -zxf /opt/apache-maven-3.6.1-bin. the tar .gz -C / opt / # configure the environment variables VI / etc / Profile # MAVEN_HOME Export MAVEN_HOME = / opt / Maven-the Apache-3.6.1 / Export the PATH = $ the PATH: $ MAVEN_HOME / bin # refresh environment variables Source / etc / Profile # verify Maven mvn - v # configure Maven repository (Huawei) vim / opt / Apache - maven-3.6.1 / conf / settings.xml
settings.xml
<!-- 本地仓库路径 --> <localRepository>/opt/repo</localRepository> <!-- 网络仓库地址 --> <mirror> <id>huaweicloud</id> <mirrorOf>central</mirrorOf> <url>https://mirrors.huaweicloud.com/repository/maven/</url> </mirror>
Tomcat installation
https://tomcat.apache.org/download-80.cgi
Download # wget -O ./apache-tomcat- 8.5 . 45 . Tar .gz HTTP: // mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.5.45/bin/apache-tomcat-8.5. 45.tar.gz
Open the configuration manager: https://www.cnblogs.com/jhxxb/p/11240356.html
Second, the plug-in installation and configuration
Git plugin
Tomcat deployment plug-in
After installing the software configuration path