1. Add the service in Hudson and build it automatically
Open Hudson Home, click New Task
Select Copy Existing task, enter the copied task name and the new service task name, click OK
Find the task after you've created it, click Settings
Configure the SVN path where the service code is located (provided when development submits the test)
Then configure the deployed server
If the server already exists, click the Name drop-down box to select directly
If it's a new server, you need to add a deployment node to system management.
Source files fills in the war package name of the service to be built (target/), in general the name matches the service name in the SVN path, and if the inconsistency notifies the developer to modify
https://172.16.10.249/svn/Code/ZhangTongHome/Server/SchoolServer/trunk/51110
Remote directory fills in the path to the server to which the service pack is to be copied, omitting the root directory (typically/home, as configured in system settings)
Exec command fill in the path of the restart script (below the bin directory)
In the case of new Tomcat, there is no restart.sh script by default, you need to copy the past from the current service, or copy from the test svn
Click Save, Hudson Configuration complete
Click Build to check if the log is properly deployed and started successfully
To view the deployment log: