当前位置: 代码迷 >> 综合 >> jekins 自动化打包部署到远程服务器配置
  详细解决方案

jekins 自动化打包部署到远程服务器配置

热度:29   发布时间:2024-02-27 12:06:20.0

1.先在jekins中配置服务器相关信息

 

 2.在项目配置中配置远程操作

 

 3.参考远程命令

netstat -tunlp|grep 7080|awk '{print $7}'|awk -F '/' '{print $1}'|xargs kill -9
rm -rf /home/tomcat8/apache-tomcat-8.5.58/webapps/testspringboot*
cp /home/testspringboot.war /home/tomcat8/apache-tomcat-8.5.58/webapps/testspringboot.war
sh tomcat8/apache-tomcat-8.5.58/bin/startup.sh