From 9b0c3f707f3c94511618908b53d7a5db99459dd5 Mon Sep 17 00:00:00 2001 From: p47623895 <18235900245@163.com> Date: Fri, 9 Apr 2021 12:53:37 +0800 Subject: [PATCH] Update '.trustie-pipeline.yml' --- .trustie-pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index adb69d1..b63aeb6 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -38,7 +38,8 @@ steps: - cd /opt/visualization - mvn clean package - echo ====开始部署======= - - cat /etc/profile + - tomcat=$(netstat -nlp | grep :8080 | awk '{print $7}' | awk -F"/" '{ print $1 }') + - kill -9 $tomcat - /usr/bin/nohup /usr/lib/jvm/jdk1.8.0_111/bin/java -jar target/demo-0.0.1-SNAPSHOT.jar >a.log 2>&1 & - sleep 8s - echo ====部署成功======