First, download Tomcant:
official website address: https: //tomcat.apache.org/download-70.cgi
system selection based on 32-bit or 64-bit, here I use 64
Second, download Jenkins:
link address: https: //pan.baidu.com/s/1hWC5vmglb9WNYFTQIlnDcw
extraction code: apeg
Third, enter the conf directory under the Tomcat installation path in the server.xml, open text, change the port number: 8888 (since the default port number for the tomcat 8080, consistent with jenkins, so here change the next port, to avoid conflict)
Fourth, back tomcat bin directory in the root directory, find startup.bat file, double click to open, run:
Garbled solve:
1. Go to the installation directory under the tomcat conf, find the file logging.properties
2. The file of java.util.logging.ConsoleHandler.encoding = UTF-8 UTF-8 into GBK
3. stopped and then restarted tomcat service shutdown.bat can startup.bat
Fifth, into the browser, enter: localhost: 8888
after six configure tomcat, will jenkins war package into the directory under the tomcat webapps directory:
seven:
1, start tomcat: find startup bin directory of tomcat .bat, double-click the start:
2, enter the url: localhost: 8765 / jenkins (here for my tomcat 8765 port number, as modified, please fill port modified)
Eight: deployment Tomcat + Jenkins:
. 1, enters Jenkins: localhost: 8080
2, creating a new item:
3, build:
Syntax: xcopy initial path to a target path / s / e / y is a control character, the parameter mean folders and files are copied, not directly covered reminder.
Note: If you have a Chinese path, special characters, spaces with the path "" to cause
subsequent application, save:
build:
View Console:
Eight: View content deployment:
1, view the construction of the tomcat just copy the contents of the past
2, use your browser to view the deployment project, you need to first start tomcat (bin directory under tomcat in startup.bat)
Note: to view the page after the deployment of the browser, can only open the html, source code file class, if it is folders will not find the path to the default display
format is: localhost: port number / project
If you do not need the path followed by /index.html
Hope this blog can help to you, articles from automated testing, interface testing, performance testing group: 762 141 168
welcome all friends to join automated testing