User:Wvengen@nikhef.nl/Hudson installation
From PDP/Grid Wiki
< User:Wvengen@nikhef.nl
Jump to navigationJump to searchRevision as of 17:21, 11 November 2009 by Wvengen@nikhef.nl (talk | contribs) (add Mac OS X instructions)
I'm using the continuous integration server Hudson as part of the jGridstart development process. An important aspect is testing the software on multiple platforms. Installing Hudson is pretty straightforward in unix-like OSes. Windows needs some attention though, which is described here.
Installation of a Hudson Windows slave
- Install the Windows OS
- Create an ordinary user (e.g. hudson), and setup auto-login (KB324737).
- Install UnxUtils (see also here), and copy sh.exe to C:\bin (or whichever drive you use for Hudson); make sure it can be found in the PATH.
- Install the Java runtime from java.com
- Create a node in Hudson (type JNLP)
- Start Hudson at login by creating in the start menu's startup application folder a shortcut to: javaws http://hudson/computer/win/slave-agent.jnlp.
I've ran Hudson on Windows XP professional 32-bit (working on 64-bit), and Windows server 2003.
Installation of a Hudson Mac OS X slave
Virtualisation using Parallels Desktop and Mac OS X Server (Leopard and Snow Leopard); it appears that you can't install regular desktop versions as virtual machines.
- Install Mac OS X
- Create an ordinary user (e.g. hudson), and setup auto-login
- Create a node in Hudson (type JNLP), and set JDK tool locations to /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home (for java 1.5.0, or use another number like 1.6)
- Start Hudson at login by opening the AppleScript editor, and entering do shell script "javaws http://my.hudson/computer/node/slave-agent.jnlp", and saving it as an application bundle. Drag that to the taskbar, right-click on it, and make it run at startup.