Original: http://www.cnblogs.com/itech/archive/2011/11/02/2233343.html
1 Jenkins
Jenkins was renamed from the previous Hudson. The main function of Jenkins is to monitor the execution of repetitive work, such as the construction of software engineering or jobs set up under cron. In particular:
* The software continues to build and test, when Jenkins is similar to CruiseControl or Damagecontrol. Essentially provides an easy-to-use, continuous integration system that makes it easier for developers to integrate changes into the project, making it easier for users to get a new build. Automation, continuous construction improves the efficiency of software development.
* Monitor the execution of externally operated jobs, such as cron jobs or procmail jobs, even if they are running on a remote machine. For example, for Cron, you will receive an email containing the output of the job, you need to check the email to confirm whether the job broke. Jenkins will keep these outputs and make it easier for you to notice the broke of the job.
The main features of Jenkins:
* Easy to install, just perform Java-jar jenkins.war, or deploy directly to a servlet container, such as Tomcat. No installation is required and database support is not required.
* Easy to configure, Jenkins can be configured completely through a friendly web GUI, and the configuration page supports error checking of configuration items and good online help. There is no need to manually edit the XML configuration file, but Jenkins also supports manual modification of the XML configuration file.
* Project Source modification detection, Jenkins can generate a list of recently modified collections from the Subversion/cvs of the project, and the change is very effective, does not increase the load Subversion/cvs repository.
* Readable permanent link generation, Jenkins generates clear, readable, permanent links to most pages, such as ' latest build '/' latest successful build ', This makes it easy to refer to the generated pages of Jenkins in other places.
* Rss/email/im integration allows you to monitor build failures in real time via rss,email or IM.
* The build can still be tagged after the build is complete, and the tag or tag will be supported after it is completed.
* The JUNIT/TESTNG test report is a good way to show the reports of various tests, and can generate a trend map of failure.
* Distributed build,jenkins can distribute build/test load to multiple machines, making better use of hardware resources and increasing build time.
* File ID, Jenkins can identify the file generated by build, such as jars.
* Plugin support, Jenkins can be extended by third-party plugins.
* Cross-platform, support for almost all platforms, such as Windows,ubuntu/debian,red Hat/fedora/centos,mac OS x,opensuse,freebsd,openbsd,solaris/ Openindiana.gentoo.
2 The installation of Jenkins Master in Windows
Download Jenkins.war, copy to D:\jenkins, and then run Java-jar Jenkins.war. (Note that you need to install the JDK first, then set the JAVA_HOME environment variable and add%java_home%\bin to the PATH environment variable)
Run as follows:
D:\jenkins>java-jar Jenkins.warrunning from: D:\jenkins\jenkins.warwebroot: $user. Home/. Jenkins JulyGeneva, . 6: -: -afternoon Winstone. Logger loginternal Info: Beginning extraction fromWar file JulyGeneva, . 6: -: $pm Org.eclipse.jetty.util.log.JavaUtilLog Info: Jetty-winstone-2.9JulyGeneva, . 7:xx:xxpm Org.eclipse.jetty.util.log.JavaUtilLog Info: NO JSP Support for, did not find Org.apache.jasper.servlet.JspServletJenkins home directory:c:\users\yangyichen\.jenkins found at: $u Ser.home/. Jenkins JulyGeneva, . 7:xx: onpm Org.eclipse.jetty.util.log.JavaUtilLog Info: Started [email protected]0.0.0.0:8080JulyGeneva, . 7:xx: onafternoon Winstone. Logger loginternal Info: Winstone Servlet Engine v2.0running:controlport=Disabled JulyGeneva, . 7:xx: GenevaAfternoon Jenkins. initreactorrunner$1onattained Information: Started initialization JulyGeneva, . 7:xx: AAfternoon Jenkins. initreactorrunner$1onattained Info: Listed all plugins JulyGeneva, . 7:xx: AAfternoon Jenkins. initreactorrunner$1onattained Info: Prepared all plugins JulyGeneva, . 7:xx: AAfternoon Jenkins. initreactorrunner$1onattained Info: Started all plugins JulyGeneva, . 7:xx: AAfternoon Jenkins. initreactorrunner$1onattained Info: Augmented all extensions JulyGeneva, . 7:xx: -Afternoon Jenkins. initreactorrunner$1onattained information: Loaded All jobs JulyGeneva, . 7:xx: -Afternoon hudson.model.asyncperiodicwork$1Run Info: Started Download metadata JulyGeneva, . 7:xx: -pm Org.jenkinsci.main.modules.sshd.SSHD Start info: Started sshd at Port53679JulyGeneva, . 7:xx: -Afternoon Jenkins. initreactorrunner$1onattained Information: Completed initialization JulyGeneva, . 7:xx: -Afternoon Jenkins. initreactorrunner$1onattained Information: Started initialization JulyGeneva, . 7:xx: -Afternoon Jenkins. initreactorrunner$1onattained Info: Listed all plugins JulyGeneva, . 7:xx: -Afternoon Jenkins. initreactorrunner$1onattained Info: Prepared all plugins JulyGeneva, . 7:xx: -Afternoon Jenkins. initreactorrunner$1onattained Info: Started all plugins JulyGeneva, . 7:xx: -Afternoon Jenkins. initreactorrunner$1onattained Info: Augmented all extensions JulyGeneva, . 7:xx: -Afternoon Jenkins. initreactorrunner$1onattained information: Loaded All jobs JulyGeneva, . 7:xx: -Afternoon Jenkins. initreactorrunner$1onattained Information: Completed initialization JulyGeneva, . 7:xx: -Afternoon Hudson. webappmain$3Run Info: Jenkins isfully up and running JulyGeneva, . 7:xx: -pm Hudson.model.UpdateSite updatedata Info: Obtained the latest update center data file forUpdatesourcedefaultJulyGeneva, . 7:xx: *pm Hudson.model.downloadservice$downloadable Load Info: Obtained the updated data file forHudson.tasks.Maven.MavenInstaller JulyGeneva, . 7:xx: $pm Hudson.model.downloadservice$downloadable Load Info: Obtained the updated data file forHudson.tasks.Ant.AntInstaller JulyGeneva, . 7:xx: thepm Hudson.model.downloadservice$downloadable Load Info: Obtained the updated data file forHudson.tools.JDKInstaller JulyGeneva, . 7:xx: theAfternoon hudson.model.asyncperiodicwork$1Run Info: finished Download metadata. -,821Ms
To access http://localhost:8080, the main interface of Jenkins is as follows:
Jenkins Master installs on Windows