When to use:
We need to build a software project in the process of testing, in order to avoid repetitive manual downloads and decompression operations, we need to build a test environment that can be built automatically, and when the code is updated, the tester can pull up the latest code to test by simply clicking "Build" (or setting the auto build time)
Operation Steps:
1. After building a project on Jenkins, download the corresponding war package for the project
2. Log in to the Linux server and create a project folder above, for example, I create a folder named "YNWL"
3. Upload the Linux version of the Tomcat package to the YNWL folder and unzip
4. Modify the configuration of the Server.xml (in the Conf folder)
This is mainly to modify the port number of the test environment access address (avoid conflicts with other ports)
5. Configure container
Jenkins side:
In Jenkins, create a new "post-build Operation", Deploy War to a container, as follows
The tomcat aspect of the Linux server:
Tomcat-users.xml need to be configured accordingly
The above is the use of Tomcat to build a test environment process, after the completion of the building can click on the "Build" on Jenkins to try to succeed (this essay is its own memo)
Turn https://www.cnblogs.com/hanmk/p/6811706.html
Linux+jenkins building a Server package automatically