Linux+jenkins building a Server package automatically

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.