Source: http://www.vogella.de/articles/ContinuousIntegration/article.html
Continuous Integration with Hudson - Tutorial
Copyright © 2008 -2009 Lars Vogel
Hudson
This article describes how to build a continuous integration cycle for Java development.
This article is currently in DRAFT.
1. Continuous Integration with Hudson
1.1. Continuous Integration Overview
Continuous integration is a process in which all development work is integrated at a predefined time or event and the resulting work is automatically tested and build. The idea is that development errors are identified very early in the process.
Hudson is one open source tool to perform Continuous Integration. The basic functionality of Hudson is to monitor a SCM (Source Control System) and if changes occurs to start and monitor a build system (for example Apache Ant or Maven). Hudson will monitor the whole process and provide reporting functionality and notification functionality to report success or errors.
Hudson can be extended by additional plugins.
1.3. Requirements for using Hudson
To use Hudson you need:
-
An accessible source code repository, e.g. subversion, with your code checked in.
-
A working build script, e.g. ant script, checked into the respository
-
A webapplication server, e.g. Tomcat, to run Hudson
Tip
Hudson works also without webapplication server but I focus on the more common case.
Download the "hudson.war" file from Hudson Homepage and put the it into your Tomcat "webapps" directory. If you start Tomcat your Hudson installation should be available under "http://localhost:8080/hudson/".
Before using hudson you need to tell it where your JDK and ant installation is. Go to Hudson under "http://localhost:8080/hudson/" and click "Manage Hudson" and then "Configure System"
Maintain the correct path to your JDK and Ant installation and press "Save" below.
2.4. Using svn and Hudson behind a proxy
See Hudson FAQ for a description how to configure the http proxy for svn in Hudson.
3. Version control systems
Hudson supports out of the box subversion and cvs but you find Hudson connectors for almost every SCM system.
The following will use svn as an example. You specify the svn URL during project setup.
4. Setting up a Hudson job
Select "New Job" and select "Freestyle Job".
Select "subversion" and maintain your svn URL. The system will give an error message that you need to maintain the credential. Click on the link and maintain your user and password.
Thank you for practicing with this tutorial.
Please note that I maintain this website in my private time. If you like the information I'm providing please help me by donating.
7. Links and Literature
7.1. Source Code
http://www.vogella.de/code/codejava.html Source Code of Examples
7.2. Hudson links
https://hudson.dev.java.net/ Homepage of the Hudson continuous integration engine
7.3. PDE/Build links
https://www6.software.ibm.com/developerworks/education/j-junit4/index.html
http://it-republik.de/jaxenter/artikel/Die-RCP-Anwendung-am-laufenden-Band-1306.html PDE Build description (German)
www.eclipse.org/pde/pde-build Eclipse PDE/Build
http://www.eclipse.org/articles/Article-PDE-Automation/automation.html Build and Test Automation for plugins and features
http://rcpquickstart.com/2007/06/06/getting-started-with-pde-build/ Getting started with PDE/Build
http://aniefer.blogspot.com/2008/06/example-headless-build-for-rcp-product.html
分享到:
相关推荐
本书《Continuous Integration with Hudson》英文版由John Ferguson Smart撰写,详细介绍了如何利用Hudson来实现持续集成,并涵盖了从环境搭建到实际应用的各个环节。 ### 安装Hudson #### 环境准备 1. **安装Java...
我发现网上的Continuous Integration with Hudson都不全,最多的到第4章,所以就花了一个下午的时间,做了一个chm,希望能帮助大家。 本电子书包含1到11章全部章节
持续集成(Continuous Integration,简称CI)是一种软件开发实践,旨在频繁地将代码变更合并到共享的主分支(通常是项目的“main”或“master”分支),并自动运行构建和测试流程。这样可以尽早发现并解决集成错误,...
hudson-3.2.2 放在tomcat下直接打开即可
maven-hudson-dev-plugin-6.1.7-hudson-1-sources.jar
maven-hudson-dev-plugin-6.1.7-hudson-1.jar
For Production use, Hudson 3.3.1 from the Eclipse Foundation is now available. This WAR file is suitable for any O/S. We recommend that users of 3.0, 3.1, 3.2 or 3.3.0 upgrade to this release. his ...
maven-hudson-dev-plugin-6.1.7-sources.jar
maven-hudson-plugin-6.1.7-sources.jar
maven-hudson-plugin-6.1.5-sources.jar
maven-hudson-dev-plugin-6.1.7.jar
maven-hudson-plugin-6.1.7.jar
maven-hudson-plugin-6.1.5.jar
hudson-3.1.0-1.1.noarch.rpm
【标题】"hudson-rest-common-2.1.1.zip" 涉及的是一个针对Hudson持续集成服务器的REST API通用组件的版本2.1.1。Hudson是一款广泛使用的开源持续集成工具,它允许开发者自动化构建、测试和部署软件。REST...
【标题】"hudson-test-utils-3.0.0-bundled.zip" 是一个与Hudson或Jenkins相关的测试工具包,它包含了用于自动化构建、部署和测试的实用程序。这个版本是3.0.0,说明它是经过多次迭代和改进的成熟版本,可能包含了对...
标题 "hudson-jetty-war-executable-3.1.2.zip" 暗示这是一个与Hudson持续集成服务器相关的软件包,它包含了Jetty web服务器的可执行war文件。Hudson是一个广泛使用的开源持续集成工具,它允许开发团队自动化构建、...
一个基于Java Swing的库,允许用户轻松有效地监视多个连续集成服务器实例(例如Hudson和CruiseControl实例)。
本节将引导你通过Hudson HPI(Hudson Plugin Interface)工具创建并运行你的第一个Jenkins插件。 - **生成插件骨架**:Hudson HPI是一个Maven插件,它可以自动生成必要的源代码结构,帮助开发者快速启动插件开发...
【标题解析】"hudson-test-harness-1.394.zip" 提供的是Hudson测试框架的一个版本,Hudson是持续集成工具,用于自动化软件构建、测试和部署。"1.394"表示这是该框架的一个特定版本,通常包含用于测试Hudson插件或...