Wiki source code of Deployment from Hudson to JavaMonitor
Version 38.1 by David Avendasora on 2010/11/16 13:48
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | With the combination of the [[Hudson>>http://hudson-ci.org/]] continuous integration server and the [[REST Routes and Direct Actions>>Project Wonder additions to wotaskd and JavaMonitor]] that have been added to Project Wonder's JavaMonitor you can automatically deploy from Hudson directly to your app servers | ||
2 | |||
3 | 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. | ||
4 | |||
5 | You need to: | ||
6 | |||
7 | 1. Install a few CPAN Modules on your Hudson host | ||
8 | |||
9 | {{code title="Required CPAN Modules"}} | ||
10 | |||
11 | perl -MCPAN -e 'install REST::Client' | ||
12 | perl -MCPAN -e 'install JSON' | ||
13 | perl -MCPAN -e 'File::Rsync' | ||
14 | perl -MCPAN -e 'Net::SSH::Perl' | ||
15 | |||
16 | {{/code}} | ||
17 | |||
18 | 1. Install the [[attached>>^wodeploy.pl]] Perl script on your Hudson host | ||
19 | 1. Install the Hudson [[Batch Tasks Plugin>>http://wiki.hudson-ci.org//display/HUDSON/Batch+Task+Plugin]] using Hudson's built-in Plugin Manager (**Manage Hudson** > **Manage Plugins**) | ||
20 | 1. In your Hudson job, create a new Batch Task with the following call: | ||
21 | |||
22 | {{code title="Add This as a Batch Task to your Hudson Job"}} | ||
23 | |||
24 | /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 | ||
25 | |||
26 | |||
27 | {{/code}} |