Jenkins continuous integration tutorial

Source: Internet
Author: User

Jenkins continuous integration tutorial

During project development, if there are too many modules and complicated programs, system integration is inevitable. Here we will introduce the integration tutorial of Jenkins.

This project takes a project under development as an example. The project is divided into a client and a server. We will take the integration of the two modules as an example to demonstrate how to use Jenkins to integrate our system.

First, we need to determine the integration destination, that is, where we need to integrate the source code.

The second is the integration sequence. Here we first integrate the server and then the client.

Log on to Jenkins, see the homepage, build a workspace, and then build it in the workspace.

 

Enter the name of the built system module. Generally, the name of the project solution is used;

As shown in:


 

After the name is written, select the source code management method.


Then select

 

1. The server needs to configure three MSBuild;

BLL layer implementation:


 

 

WCF:


 

1. The client also needs to configure the csproj file and output path;

2.Note:: The output path only needs to be configured for WCF, and does not need to be configured for other layers.

 

4. Output Path Specification

Shows the output path of the WCF layer:

Path requirements:

/T: ResolveReferences; Compile/t: _ CopyWebApplication/p: Configuration = Release/p: WebProjectOutputDir = E: \ ITOO4.0 _ Publish \ BasicSystem \ BasicStudent \ ITOO. Student. Server

/P: OutputPath = E: \ ITOO4.0 _ Publish \ BasicSystem \ BasicStudent \ ITOO. BasicStudent. Server \ bin

The naming Requirements for the red part are the same;

The name of the green part must be the name of your system;

The name of the yellow part must be the name of the system module in each system;

Before building a project, you need to create the bat file corresponding to the self-built module on the server (take AuthorityOrganizationUser as an example), as shown in:


 

Call E: \ ITOO4.0 _ Publish. bat \ FreshConfigureManageService. bat

Create your own bat file in the corresponding path


Complete the configuration of the self-created bat file, including the following two aspects:

After the creation is complete, click the build button.

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.