参考 http://hudson-ci.org/debian/
加载apt keywget -O - http://hudson-ci.org/debian/hudson-ci.org.key | sudo apt-key add -
修改apt源 /etc/apt/sources.list 加入deb http://hudson-ci.org/debian binary/
安装Hudsonsudo apt-get updatesudo apt-get install hudson
安装过程中会自动创建一个用户 hudson, 现在手动把hudson加入到git用户组中, 以便能够有权限clone出gitosis中的git项目 (hudson和gitosis是安装在同一台服务器上的) :sudo usermod -g git hudson
进入hudson帐号, 配置user.email和user.namesudo su hudsongit config --global user.email "hudson@test"git config --global user.name "hudson"
安装完成后即可通过浏览器访问部署在8080端口的Hudson
用浏览器进入 “Manage Hudson” > “Manage Plugins” > “Available”, 找到 “GIT plugin” 和 “Rake plugin”, 选中后点击右下角 “Install” 安装
cd /home/git/repositories/xxxx.git/hooksecho "curl -s http://[YOURHOST]:8080/job/[YOURAPP]/build" > post-update
"D" is for Dylan, this blog is about life and tech(computer world).
Feel free to contact me: d@hc.la