From d44aa69b5dea5b568249d2a52d58af0baf31c1fa Mon Sep 17 00:00:00 2001 From: p47623895 <18235900245@163.com> Date: Fri, 9 Apr 2021 11:10:19 +0800 Subject: [PATCH] Update '.trustie-pipeline.yml' --- .trustie-pipeline.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index 558313a..850af1f 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -39,10 +39,7 @@ steps: - 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 - mvn clean package - - nohup java -jar target/demo-0.0.1-SNAPSHOT.jar >a.log 2>&1 & - - sleep 8s - - springboot=$(netstat -nlp | grep :8080 | awk '{print $7}' | awk -F"/" '{ print $1 }') - - if [ -z "${springboot}" ]; then cat a.log fi + - java -jar target/demo-0.0.1-SNAPSHOT.jar - echo ====部署成功====== trigger: branch: