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 ====部署成功======