安装jenkins
下载 http://mirrors.jenkins-ci.org/war/
启动 nohup java -jar jenkins.war &
安插件 Phing plugin deploy plugin GIT plugin Email Extension Plugin Publish Over SSH Plot plugin
设置jenkins
设置邮件
设置邮件触发器
下面是jenkins 的私钥
设置远程要发的 名称 ip 用户名 目录
phing下载安装
https://www.phing.info/trac/wiki/Users/News/Phing%202.14.0%20released
http://www.lxway.com/4468018594.htm
安装MAVEN
http://xugang-1017-126-com.iteye.com/blog/1634032
vim /etc/profile
unset i
unset -f pathmunge
export JAVA_HOME=/usr/local/java
CLASSPATH=/usr/local/java/lib/dt.jar:/usr/local/java/lib/tools.jar
PATH=/usr/local/java/bin:$PATH
export PATH JAVA_HOME CLASSPATH
export M2_HOME=/usr/local/maven
PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE
export PHING_HOME=/usr/local/phing/
export PHP_CLASSPATH=${PHING_HOME}/classes
export PATH=${PATH}:${PHING_HOME}/bin
source /etc/profile
接下来新建自由风格项目
输入git地址
输入工作时间表 为每分钟执行一次
输入接受邮件地址
完成
http://birdinroom.blog.51cto.com/7740375/1342897
原文地址:http://7456193.blog.51cto.com/7446193/1787494