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

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

    原文作者:巽_e877
    原文地址: https://www.jianshu.com/p/b321954920ab
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞