With the combination of the Jenkins or Hudson continuous integration server and the REST Routes and Direct Actions that have been added to 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
On CentOS, you will have to install the openssl-devel package. You will also need to install the perl-CPAN package (yum install perl-CPAN).
Installing Net::SSH::Perl on Ubuntu is a bit of a pig. I found these
- Install the wodeploy.pl script on your Jenkins host
- Install the Hudson Batch Tasks Plugin using Jenkins' built-in Plugin Manager (Manage Jenkins -> Manage Plugins)
- In your Jenkins job, create a new Batch Task with the following call: