svn+jenkins+supervisor+脚本组合可以实现可视化的版本升级和回退,非常方便和实用,话不多说上流程图和代码:
一键版本平滑升级脚本:
https://gitee.com/eric20170524/hungry-for-knowledge/blob/master/python-script/updateVersion.py
一键版本回退脚本:
https://gitee.com/eric20170524/hungry-for-knowledge/blob/master/python-script/rollbackVersion.py