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!!!
相關文章
相關標籤/搜索