Difference between revisions of "User:Wvengen@nikhef.nl/Hudson installation"
From PDP/Grid Wiki
Jump to navigationJump to searchm |
(add Mac OS X instructions) |
||
Line 6: | Line 6: | ||
* Install [http://unxutils.sourceforge.net/ UnxUtils] (see also [http://www.redantigua.com/unxutils-win.html here]), and copy <tt>sh.exe</tt> to <tt>C:\bin</tt> (or whichever drive you use for Hudson); make sure it can be found in the <tt>PATH</tt>. | * Install [http://unxutils.sourceforge.net/ UnxUtils] (see also [http://www.redantigua.com/unxutils-win.html here]), and copy <tt>sh.exe</tt> to <tt>C:\bin</tt> (or whichever drive you use for Hudson); make sure it can be found in the <tt>PATH</tt>. | ||
* Install the Java runtime from [http://www.java.com/ java.com] | * Install the Java runtime from [http://www.java.com/ java.com] | ||
− | * Create a node in Hudson | + | * Create a node in Hudson (type JNLP) |
+ | * Start Hudson at login by creating in the start menu's startup application folder a shortcut to: <tt>javaws http://hudson/computer/win/slave-agent.jnlp</tt>. | ||
− | I've ran Hudson on Windows XP professional 32-bit | + | 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 [http://www.parallels.com/ 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. <tt>hudson</tt>), and setup auto-login | ||
+ | * Create a node in Hudson (type JNLP), and set JDK tool locations to <tt>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home</tt> (for java 1.5.0, or use another number like <tt>1.6</tt>) | ||
+ | * Start Hudson at login by opening the AppleScript editor, and entering <tt>do shell script "javaws http://my.hudson/computer/node/slave-agent.jnlp"</tt>, and saving it as an application bundle. Drag that to the taskbar, right-click on it, and make it run at startup. |
Revision as of 17:21, 11 November 2009
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.