Deployment from Hudson to JavaMonitor
Version 47.1 by David Avendasora on 2010/11/30 01:02
With the combination of the Hudson continuous integration server and the REST Routes and Direct Actions that have been added to Project Wonder's JavaMonitor you can automatically deploy from Hudson directly to your app servers
Included as an attachment to this page is a small Perl script that I demonstrated at WOWODC 2010. This script will take a build out of Hudson and deploy it to your wotaskd/JavaMonitor server. It will also add the app and create an instance if the app is not found in wotaskd.
You need to:
- Install a few CPAN Modules on your Hudson host
Required CPAN Modules
perl -MCPAN -e 'install REST::Client'
perl -MCPAN -e 'install JSON'
perl -MCPAN -e 'File::Rsync'
perl -MCPAN -e 'Net::SSH::Perl'
Installing Net::SSH::Perl on Ubuntu is a bit of a pig. I found these instructions helpful.
- Install the attached Perl script on your Hudson host
- Install the Hudson Batch Tasks Plugin using Hudson's built-in Plugin Manager (Manage Hudson > Manage Plugins)
- In your Hudson job, create a new Batch Task with the following call:
Add This as a Batch Task to your Hudson Job
/path/to/wodeploy.pl -U http://your.womonitorserver.com:56789/cgi-bin/WebObjects/JavaMonitor.woa -n ${APPLICATION_NAME} -P ${WORKSPACE}/Projects/Application/dist/${APPLICATION_NAME}.woa -W ${WORKSPACE}/Projects/Application/dist/Split/WebObjects/${APPLICATION_NAME}.woa -p yourMonitorPassword