Jenkins, Hudson installation, configuration detailed records

The predecessor of Jenkins is Hudson, which is an indispensable tool for continuous integration. Its main purposes are: continuous and automatic construction of projects; construction of automated test projects; monitoring of some tasks that are executed regularly.
Let's talk about the installation first:
Hudson's war package download address: http://mirrors.neusoft.edu.cn/eclipse/hudson/war/
Jenkins' war package download address: <http://mirrors.jenkins-ci.org /war/>
The address to download tomcat: http://mirror.bit.edu.cn/apache/tomcat/ (Hudson, Jenkins need web container support, no database, direct access)
First install JDK, my JDK version is 1.6.0.

Unzip the downloaded Tomcat archive, set the environment variable (path: E:\apache-tomcat-6.0.36\bin), and run startup.bat under bin to start tomcat;
if the startup fails, check whether port 8080 is occupied. In cmd, use netstat -ano to check that the pid process is occupying 8080, and then kill the process through the task manager; in
addition, tomcat also needs JAVA support. By default, tomcat checks whether there is JAVA_HOME or JRE_HOME in your local environment. Configure it and restart the machine. Then re-execute startup.bat under bin. <http://localhost:8080/>

Put Hudson.war or Jenkins.war (if there is one with a version number, remove the version number) into E:\apache-tomcat-6.0.36\webapps and access it manually : http://localhost:8080/jenkins/
http://localhost:8080/hudson/

found that their home directories are assigned to C:\Documents and Settings\Administrator by default. In order to avoid the growing C drive in the future, we need to separate Hudson and Jenkins separately Create your own working directory: Create the Hudson and Jenkins folders under the E drive, the name can be arbitrarily named, and then set in the environment variables: HUDSON_HOME and JENKINS_HOME (Hudson and Jenkins will identify their own home directories through environment variables, respectively ), and then restart the machine, otherwise unsuccessful.
Visit again:
http://localhost:8080/jenkins/
http://localhost:8080/hudson/


============================= =============================================

Jenkins install Info
Jenkins, before Called Hudson, it is a continuous integration tool developed based on Java, which is used to monitor the repetitive work in order, including:
1. Continuous software version release/test project.
2. Monitor the work performed by external calls.
Jenkins
build

There are two startup methods for downloading jenkins.war.
First, ensure that jdk has been installed in the system, preferably jdk1.5 or above.
The first startup method is to switch to the directory where jenkins.war is stored, and enter the following command:
$ java -jar jenkins.war
Then enter http://localhost:8080 in the browser (recommended to use Firefox), localhost can be the ip of the machine or the computer name. You can open jenkins.
The second method is to open it with tomcat.
Unzip tomcat to a directory, such as /usr/local, enter the /bin directory under tomcat, start tomcat,
put the jenkins.war file in the webapps directory under tomcat, and start When jenkins is used, the jenkins directory will be automatically created under the webapps directory, so the address that needs to be entered in the address bar is a bit different from the previous method:
http://localhost:8080/jenkins.

===================================================== ======================

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326724749&siteId=291194637