From b595cb0979448e12fb9000dbbe0b52e712211fbd Mon Sep 17 00:00:00 2001 From: p47623895 <18235900245@163.com> Date: Fri, 9 Apr 2021 11:12:51 +0800 Subject: [PATCH] Update '.trustie-pipeline.yml' --- .trustie-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index 850af1f..60da008 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -37,7 +37,7 @@ steps: - echo ====暂停容器开始11======= - cd /opt/visualization - tomcat=$(netstat -nlp | grep :8080 | awk '{print $7}' | awk -F"/" '{ print $1 }') - - if [ -z "${tomcat}" ]; then echo 1 > test.log else kill -9 $tomcat fi + - kill -9 $tomcat >/dev/null 2>&1 - mvn clean package - java -jar target/demo-0.0.1-SNAPSHOT.jar - echo ====部署成功======