git and maven 代码自动部署脚本

shell脚本,自动从git服务器下载代码,运用maven编译成war包,部署到resingit #! /bin/sh base=/home/shenyun/git/myproject cd $base #获取代码 git pull #若是最后运行的命令的结束代码(返回值)不为0,返回 if [ ! $? -eq 0 ] then echo "Error in git pull!!!
相关文章
相关标签/搜索