Monday, February 8, 2010

Configuring Hudson for continuous integration

Unfortunately, you will have to download a VERY OLD CVS client here:

http://www.wincvs.org/download.html

(I have downloaded WinCvs2_0_2-4.zip, installed to C:\Program Files\cvsnt and added this path to the PATH system variable)

in Hudson, if your username contains the domain name (eg mydomain\myusername), remove mydomain\ from the connection string:

:pserver:mycvsusername:mycvspassword@10.130.123.229:d:/cvsroot

If you checkout multiple modules, they should be separated by BLANK, not by comma....

Hudson will checkout into
C:\Users\myusername\.hudson\jobs\PVDemo\workspace


A Workshop Ant build.xml will not work unless it can find the .metadata directory in
C:\Users\pierre\.hudson\jobs\PVDemo\workspace, so you must copy it from your real workspace.
Copy here also the workshop-lib directory and the workspace.xml file.


Remember also to add Ant to your PATH, such as C:\beawli\modules\org.apache.ant_1.6.5\bin



ON LINUX:


creade a directory /home/weblogic/hudson
copy hudson.war in it
java -jar hudson.war (or nohup java -jar hudson.war &  to run in background)

it will create a /home/weblogic/.hudson  containing all the data files
in your browser, point to http://yourhostname:8080/

new job
build a free style software project, call it ACME_INTEG_WEB
Source Code Management, select CVS and enter a CVSROOT ":pserver:cvsusername:cvspassword@cvshost:/cvsrepository"

enter the modules you want to checkout (separated by blanks)

No comments: