Running Multiple Hudson Instances Simultaneously

I wanted to run multiple Hudson instances side-by-side. It was easy enough to get them running kicked off via batch files, but I wanted them to run as services, because I’m lazy and greedy.

Turns out it’s easy, though non-obvious.

  1. Install 1 Hudson instance as a Service.
  2. Stop the running Hudson service (net stop hudson)
  3. Copy the original hudson installation ($HUDSON_HOME) to another directory where you want the new service to reside
  4. Modify the copied hudson.xml in the new hudson install directory to give it a new service name.  Change service/id from “hudson” to “hudson2”. Not the service name, the service id.
  5. Now run the following from the command shell in your new hudson directory: hudson.exe install
  6. Start your new server: net start hudson2
  7. Start your old server: net start hudson
  8. Finished!

Now if you want to uninstall it you simply run “hudson.exe uninstall” from the service $HUDSON_HOME directory. The mailing lists are good.

Post a Comment

*Required
*Required (Never published)