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.