hudson安装
1.下载hudson
http://java.net/projects/hudson/downloads
这里我选择的是Hudson ver. 1.386
2.解压hudson,并且放到web(resin)服务目录下,
我这里是/data/www/hudson
3.配置环境变量
export HUDSON_HOME=/data/www/hudson
#!/bin/shWORK_DIR=/data/www/hudson/jobs/twitter_deploy_clientWeb/workspace/;RESIN_WEBAPPS_DIR=/data/www;ssh root@192.168.0.2 "/data/shell/resin.sh stop";sleep 20;#clean the old deployssh root@192.168.0.2 "rm -rf $RESIN_WEBAPPS_DIR/client-web.war";#copy to clientscp $WORK_DIR/target/client-web-1.0-SNAPSHOT.war 192.168.0.2:$RESIN_WEBAPPS_DIR/client-web.war;ssh root@192.168.0.2 "unzip -o $RESIN_WEBAPPS_DIR/client-web.war -d $RESIN_WEBAPPS_DIR/twitter;"ssh root@192.168.0.2 "/data/shell/resin.sh start";
#! /bin/shsource /etc/profilesource /root/.bash_profile/usr/local/resin/bin/resin.sh $1