jenkins+rsync实现静态资源增量修改发布

2017-03-23  本文已影响0人  xun2019

rsync安装参考:

http://www.cnblogs.com/ggjucheng/p/5474038.html

https://zhidao.baidu.com/question/2078634436717887028.html

jenkins构建脚本:

prepare-package war:exploded

-Dmaven.test.skip=true

yuicompressor:compress

自动同步脚本:

export RSYNC_PASSWORD="chbtc123456"

rsync -avz --port=xx --progress --delete target/xxx/statics staticuser@192.168.x.xx::static_data

上一篇 下一篇

猜你喜欢

热点阅读