jenkins创建svn项目自动部署

 

Exec command 

ps -ef|grep 'owgd_admin'|grep -v grep|awk '{print $2}'|xargs kill -9 ; 
cd /home/zhxjdk18/server/jenkins_project/owgd_site/admin; 
rm -rf * ;
source .bashrc ;
java -version ;
cd /home/zhxjdk18/server/jenkins_project/owgd_site/admin; 
nohup java -jar owgd_admin.jar --spring.profiles.active=dev >nohup.out & echo "$(echo -e "\n")" 

 

 

 

 

posted @ 2018-07-24 13:21  748573200000  阅读(340)  评论(0编辑  收藏  举报