The following installation was tested with IBM WebSphere (WAS) v6.1 ND.
You need Hudson 1.197 or later to run on WAS!
There are two ways to install hudson on WAS - manually through the Admin console or automated through the WAS scripting interface.
Admin console installation
The installation instructions are simple as for each WAR Module.
- Start the installation wizard under Applications - Install new application.
- Select hudson.war and enter the context root for the application - for example hudson
After finishing the wizard go to the installed application (hudson_war for example) and perform the following steps to change the classloader mode:
- Click Manage Modules
- Click Hudson
- From the "Class loader order" drop-down select "Classes loaded with application class loader first"
- Save the changes
- Restart the server - this is necessary to apply the changed class loader mode. You need to restart only the server onto which hudson is installed
Installing through wsadmin
Before running hudson.jacl make the necessary changes in the config.properties file - adjust the server envoronment, the context root, the virtual host mapping and optional the hudson home directory. After that run following command from the deployment manager bin directory:
where the <command> is:
- deploy - use it for first time installation. it performs installation only
- redeploy - use it to upgrade hudson. It uninstalls previously installed hudson instance and installs the new version from the hudson.war
- undeploy - use to uninstall hudson. In this case the last parameter is not necessary.
The paths must be provided in UNIX style even on Windows - d:/test/hudson/hudson.war instead of d:\test\hudson\hudson.war
After successfully installation the server must be restarted manually - the script doesn't provide this functionality at the moment, but the stopServer and startServer commands can be used for this purpose.
If security is enabled on the server either provide -user and -password arguments to the command or adjust the soap.client.props file with the login information in order to be able to connect to the server's admin interface.
The script is not tested with the base server edition, but should work on it - the only change is to disable the node synchronization in the saveConfigAndSync procedure - the line to comment can be found in hudson.jacl - search for BASE or for saveConfigAndSync.