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: