#!/bin/sh
echo ">>>>>>>>>>>>>svn update<<<<<<<<<<<<<<<<<"
cd /data/server/cloud-yp/cloud-yp
svn up
echo ">>>>>>>>>>>>>mvn clean install<<<<<<<<<<<<<<<<<"
mvn clean
mvn install -Pzspfsc_v2_test
echo ">>>>>>>>>>>>>kill tomcat0032<<<<<<<<<<<<<<"
pidlist=$(ps -ef | grep tomcat-0032 | grep -v grep | awk '{print $2}')
kill -9 $pidlist
sleep 2s
echo ">>>>>>>>>>>>>clean tomcat webapp manager<<<<<<<<<<<<<"
cd /data/server/tomcat-0032/webapps/manager
rm -rf *
echo ">>>>>>cp and jar finally delete war to tomcat<<<<<"
\cp /data/server/cloud-yp/cloud-yp/cloud-zspfsc-manager/target/cloud-zspfsc-manager.war /data/server/tomcat-0032/webapps/manager
cd /data/server/tomcat-0032/webapps/manager
jar -xf cloud-zspfsc-manager.war
rm -rf cloud-zspfsc-manager.war
echo ">>>>>>>>>>>>>>>>please start tomcat<<<<<<<<<<<<<<<<<"
Linux下svn与tomcat实现脚本自动打包
点赞
收藏